From 5a80323e2ea4c72fa59f50374ee9f1fda4e8fa94 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 7 Jul 2021 11:58:28 +0900 Subject: 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 --- kdbg/gdbdriver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); -- cgit v1.2.1