Red Hat Bugzilla – Bug 114505
kdbg does not start because of message from gdb
Last modified: 2007-11-30 17:10:35 EST
From Bugzilla Helper:
User-Agent: Opera/7.23 (X11; Linux i686; U) [en]
Description of problem:
When I try to debug a threaded application (xine), gdb returns a
message that kdgb does not expect:
Using host libthread_db library "/lib/tls/libthread_db.so.1
This message is wrongly interpreted as an indication of an error, and
kdbg does not debug the program, while gdb does his job.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Get xine from cvs (xine.sf.net)
2.configure, make, etc
Actual Results: kdbg does not debug the application
Expected Results: kdbg should have debugged the application, because
gdb does it.
I have a patch that does the job. If it's a good solution, I don't
RCS file: /cvsroot/kdbg/release/kdbg/kdbg/gdbdriver.cpp,v
retrieving revision 220.127.116.11
diff -u -3 -p -r18.104.22.168 gdbdriver.cpp
--- kdbg/gdbdriver.cpp 1 Feb 2003 16:30:18 -0000 22.214.171.124
+++ kdbg/gdbdriver.cpp 28 Jan 2004 20:43:28 -0000
@@ -1885,17 +1885,22 @@ bool GdbDriver::parseChangeWD(const char
bool GdbDriver::parseChangeExecutable(const char* output, QString&
+ const char *msg_libthread = "Using host libthread_db library";
+ int n = strlen(msg_libthread);
message = output;
m_haveCoreFile = false;
* The command is successful if there is no output or the single
- * message (no debugging symbols found)...
+ * message (no debugging symbols found) or
+ * (Using host libthread_db library "/lib/tls/libthread_db.so.
output == '\0' ||
- strcmp(output, "(no debugging symbols found)...") == 0;
+ strcmp (output, "(no debugging symbols found)...") == 0 ||
+ strncmp(output, msg_libthread, n) == 0;
bool GdbDriver::parseCoreFile(const char* output)
Created attachment 97309 [details]
patch to solve the warning message problem
Sorry for attaching the patch in the original message...
it's fixed now in 1.2.9-3. thanks for your patch file.