Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* meaningful error message in gdbserver
@ 2005-08-31 19:04 SZOKOVACS Robert
  2005-09-17 23:12 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: SZOKOVACS Robert @ 2005-08-31 19:04 UTC (permalink / raw)
  To: gdb-patches

Hi,

I had a long day fighting with remote debugging, until I found out that my
libpthread and libthread_db versions didn't match. So I created the patch
below that makes gdbserver more verbose when failing, maybe it can save
some time for somebody in the future.

br

Szo

==========================================================================

diff -ruw gdb-6.3.50.20050831-orig/gdb/gdbserver/thread-db.c gdb-6.3.50.20050831/gdb/gdbserver/thread-db.c
--- gdb-6.3.50.20050831-orig/gdb/gdbserver/thread-db.c	2005-08-31 18:12:56.000000000 +0200
+++ gdb-6.3.50.20050831/gdb/gdbserver/thread-db.c	2005-08-31 18:27:18.000000000 +0200
@@ -351,6 +351,10 @@
       /* No thread library was detected.  */
       return 0;

+    case TD_VERSION:
+      warning ("error initializing thread_db library:\nVersion of libpthread and libthread_db mismatch.");
+      return 0;
+
     case TD_OK:
       /* The thread library was detected.  */


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-17 23:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-31 19:04 meaningful error message in gdbserver SZOKOVACS Robert
2005-09-17 23:12 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox