aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread-db.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-11-23 01:34:43 +0000
committerMichael Snyder <msnyder@vmware.com>2002-11-23 01:34:43 +0000
commitf7c1e0f3da32c8e1e3b3c66a4d5ca54f1ccb1071 (patch)
tree88e962b3389bc8c1420d9e5bc07caa90c880ef73 /gdb/thread-db.c
parentb85e4829fab4ddd706942d23a98d0fe2be75e1de (diff)
downloadgdb-f7c1e0f3da32c8e1e3b3c66a4d5ca54f1ccb1071.zip
gdb-f7c1e0f3da32c8e1e3b3c66a4d5ca54f1ccb1071.tar.gz
gdb-f7c1e0f3da32c8e1e3b3c66a4d5ca54f1ccb1071.tar.bz2
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.
Diffstat (limited to 'gdb/thread-db.c')
-rw-r--r--gdb/thread-db.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/thread-db.c b/gdb/thread-db.c
index 9338c57..8140437 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. */