summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-07-07 11:58:28 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-07-07 11:58:28 +0900
commit5a80323e2ea4c72fa59f50374ee9f1fda4e8fa94 (patch)
tree50fa7ce4508550b098ace570e121f8673842cfeb
parentce9107072e149bda43a2b764161cca8a0ee7607d (diff)
downloadkdbg-5a80323e2ea4c72fa59f50374ee9f1fda4e8fa94.tar.gz
kdbg-5a80323e2ea4c72fa59f50374ee9f1fda4e8fa94.zip
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>
-rw-r--r--kdbg/gdbdriver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kdbg/gdbdriver.cpp b/kdbg/gdbdriver.cpp
index 6255df4..4135576 100644
--- a/kdbg/gdbdriver.cpp
+++ b/kdbg/gdbdriver.cpp
@@ -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');