Fixed detection of gdb when an executable file contains warnings about sections outside of ELF segments. This resolves isue #12.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/14/head
Michele Calgaro 3 years ago
parent ce9107072e
commit 5a80323e2e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -2073,7 +2073,8 @@ bool GdbDriver::parseChangeExecutable(const char* output, TQString& message)
strncmp(output, "Try: ", 5) == 0 ||
strncmp(output, "Using host libthread_db", 23) == 0 ||
strncmp(output, "(no debugging symbols found", 27) == 0 ||
strncmp(output, "(No debugging symbols found", 27) == 0)
strncmp(output, "(No debugging symbols found", 27) == 0 ||
strncmp(output, "warning: Loadable section", 25) == 0)
{
// this line is good, go to the next one
const char* end = strchr(output, '\n');

Loading…
Cancel
Save