diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index 338ea71c33c8268dd3a1ac3f1f8ad2e374e924e5..b249004b1cf99741f127b5e6b80f82d191993207 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -4653,6 +4653,11 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &settingsIdHint)
     postCommand("pwd");
     postCommand("set width 0");
     postCommand("set height 0");
+
+    postCommand("set breakpoint always-inserted on");
+    // displaced-stepping does not work in Thumb mode.
+    //postCommand("set displaced-stepping on");
+    postCommand("set trust-readonly-sections on");
     postCommand("set auto-solib-add on");
 
     if (0 && debuggerCore()->boolSetting(TargetAsync)) {