diff options
author | Eike Ziller <eike.ziller@qt.io> | 2021-01-12 14:14:41 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2021-01-12 14:14:41 +0100 |
commit | 7ce3ceabe903b6adf219ec58d8022c6dcc6c8f1c (patch) | |
tree | eb27967b24f2f238e02ea583e14cdae8b66e5123 /src/plugins/debugger | |
parent | dedae466fdcb3887236226c79757ae8169f405e2 (diff) | |
parent | 4231a88b67abe9ce2bfcffedc589a262c230d642 (diff) | |
download | qt-creator-7ce3ceabe903b6adf219ec58d8022c6dcc6c8f1c.tar.gz |
Merge remote-tracking branch 'origin/4.14'
Change-Id: I26a53ef81a54a2f7aa482448118298895b712941
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r-- | src/plugins/debugger/gdb/gdbengine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 50cab2e156..e09cbae8fa 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -4150,6 +4150,9 @@ void GdbEngine::setupInferior() // Do that first, otherwise no symbols are loaded. QFileInfo fi = executable.toFileInfo(); QString path = fi.absoluteFilePath(); + // This is *not* equivalent to -file-exec-and-symbols. If the file is not executable + // (contains only debugging symbols), this should still work. + runCommand({"-file-exec-file \"" + path + '"'}); runCommand({"-file-symbol-file \"" + path + '"', CB(handleFileExecAndSymbols)}); |