summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2002-11-23 01:34:43 +0000
committerMichael Snyder <msnyder@specifix.com>2002-11-23 01:34:43 +0000
commit4e17b9bf5f5e29012e63be8b8cc6889f84e02c2a (patch)
tree01fa5c0f89bb68ee85a2bddb2c73359529a27811
parent5f547dac9ac4deb3f27a6bd5947710b630ba326c (diff)
downloadgdb-4e17b9bf5f5e29012e63be8b8cc6889f84e02c2a.tar.gz
2002-11-22 Michael Snyder <msnyder@redhat.com>
* thread-db.c (thread_db_load): Tell the user what's going on if dlopen fails on libthread_db.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/thread-db.c8
2 files changed, 12 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index df3ed27a580..99786d25c5c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-22 Michael Snyder <msnyder@redhat.com>
+
+ * thread-db.c (thread_db_load): Tell the user what's going on
+ if dlopen fails on libthread_db.
+
2002-11-23 Andreas Schwab <schwab@suse.de>
* m68k-tdep.c (m68k_register_virtual_type): Use architecture
diff --git a/gdb/thread-db.c b/gdb/thread-db.c
index 9338c57da00..81404376db1 100644
--- a/gdb/thread-db.c
+++ b/gdb/thread-db.c
@@ -292,7 +292,13 @@ thread_db_load (void)
handle = dlopen (LIBTHREAD_DB_SO, RTLD_NOW);
if (handle == NULL)
- return 0;
+ {
+ fprintf_filtered (gdb_stderr, "\n\ndlopen failed on '%s' - %s\n",
+ LIBTHREAD_DB_SO, dlerror ());
+ fprintf_filtered (gdb_stderr,
+ "GDB will not be able to debug pthreads.\n\n");
+ return 0;
+ }
/* Initialize pointers to the dynamic library functions we will use.
Essential functions first. */