diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-05-14 15:26:09 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-05-14 15:26:09 +0900 |
commit | 8b81bdc82f9f3a36ea2f1f21dee3a3b7f5707e9d (patch) | |
tree | ab2b695252cc0c47603fccbdf4323231893b0401 | |
parent | 0b9cc25c2ff8dfa7352afae9ff1fe87a550aeaa7 (diff) | |
download | kdbg-8b81bdc82f9f3a36ea2f1f21dee3a3b7f5707e9d.tar.gz kdbg-8b81bdc82f9f3a36ea2f1f21dee3a3b7f5707e9d.zip |
Improved detection of gdb from GdbDriver (now aligned to detection used
in Kdbg v2.5.4). This resolves bug 1996 again.
-rw-r--r-- | kdbg/gdbdriver.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kdbg/gdbdriver.cpp b/kdbg/gdbdriver.cpp index 61c09e4..5a5ec05 100644 --- a/kdbg/gdbdriver.cpp +++ b/kdbg/gdbdriver.cpp @@ -2083,9 +2083,12 @@ bool GdbDriver::parseChangeExecutable(const char* output, TQString& message) * Using host libthread_db * (no debugging symbols found) */ - while (strncmp(output, "Using host libthread_db", 23) == 0 || - strncmp(output, "(no debugging symbols found)", 28) == 0 || - strncmp(output, "Reading symbols from", 20) == 0) + while (strncmp(output, "Reading symbols from", 20) == 0 || + strncmp(output, "done.", 5) == 0 || + strncmp(output, "Missing separate debuginfo", 26) == 0 || + strncmp(output, "Try: ", 5) == 0 || + strncmp(output, "Using host libthread_db", 23) == 0 || + strncmp(output, "(no debugging symbols found)", 28) == 0) { // this line is good, go to the next one const char* end = strchr(output, '\n'); |