diff options
author | hjk <qtc-committer@nokia.com> | 2010-09-08 11:54:33 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-09-08 11:54:55 +0200 |
commit | 1dab23830773a7d008b7d886b31c3466e9f5027c (patch) | |
tree | d9bdbeaabc201ca0b8d9c98f87857c837a13bfe4 /src/plugins/debugger/gdb/remotegdbserveradapter.cpp | |
parent | 571d40a6973845ce6a92e7cf3eef796a58884468 (diff) | |
download | qt-creator-1dab23830773a7d008b7d886b31c3466e9f5027c.tar.gz |
debugger: add some comment on 'set target-async' weirdness
Diffstat (limited to 'src/plugins/debugger/gdb/remotegdbserveradapter.cpp')
-rw-r--r-- | src/plugins/debugger/gdb/remotegdbserveradapter.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/plugins/debugger/gdb/remotegdbserveradapter.cpp b/src/plugins/debugger/gdb/remotegdbserveradapter.cpp index f3749f402a..86fa9edfc4 100644 --- a/src/plugins/debugger/gdb/remotegdbserveradapter.cpp +++ b/src/plugins/debugger/gdb/remotegdbserveradapter.cpp @@ -184,6 +184,20 @@ void RemoteGdbServerAdapter::setupInferior() if (!args.isEmpty()) m_engine->postCommand("-exec-arguments " + args.toLocal8Bit()); + // This has to be issued before 'target remote'. On pre-7.0 the + // command is not present and will result in ' No symbol table is + // loaded. Use the "file" command.' as gdb tries to set the + // value of a variable with name 'target-async'. + // + // Testing with -list-target-features which was introduced at + // the same time would not work either, as this need an existing + // target. + // + // Using it even without a target and having it fail might still + // be better as: + // Some external comment: '[but] "set target-async on" with a native + // windows gdb will work, but then fail when you actually do + // "run"/"attach", I think.. m_engine->postCommand("set target-async on", CB(handleSetTargetAsync)); if (fileName.isEmpty()) { |