Improved detection of gdb from GdbDriver (now aligned to detection used

in Kdbg v2.5.4). This resolves bug 1996 again.
pull/1/head
Michele Calgaro 11 years ago
parent 0b9cc25c2f
commit 8b81bdc82f

@ -2083,9 +2083,12 @@ bool GdbDriver::parseChangeExecutable(const char* output, TQString& message)
* Using host libthread_db * Using host libthread_db
* (no debugging symbols found) * (no debugging symbols found)
*/ */
while (strncmp(output, "Using host libthread_db", 23) == 0 || while (strncmp(output, "Reading symbols from", 20) == 0 ||
strncmp(output, "(no debugging symbols found)", 28) == 0 || strncmp(output, "done.", 5) == 0 ||
strncmp(output, "Reading symbols from", 20) == 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 // this line is good, go to the next one
const char* end = strchr(output, '\n'); const char* end = strchr(output, '\n');

Loading…
Cancel
Save