diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index af0a011fad3de99e715abbae296e9391edcd8a7c..2d8321c37c226bd97083ca4f8f78027e95e878ad 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -4691,6 +4691,7 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &settingsIdHint)
     //postCommand("set displaced-stepping on");
     postCommand("set trust-readonly-sections on", ConsoleCommand);
     postCommand("set auto-solib-add on", ConsoleCommand);
+    postCommand("set remotecache on", ConsoleCommand);
 
     if (0 && debuggerCore()->boolSetting(TargetAsync)) {
         postCommand("set target-async on", ConsoleCommand);