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:52 +0900
commit0299466bf517c2cb7bd2cfdd33814c2a99e0139e (patch)
treeaa72a03a0967f803e15b7e9a53a3aea2128d7002
parentae260bb8164b9d4e3ca54e0a448b375820d0a80b (diff)
downloadkdbg-0299466bf517c2cb7bd2cfdd33814c2a99e0139e.tar.gz
kdbg-0299466bf517c2cb7bd2cfdd33814c2a99e0139e.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> (cherry picked from commit 5a80323e2ea4c72fa59f50374ee9f1fda4e8fa94)
-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');