aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-thread-db.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-02-05 20:02:51 +0000
committerDaniel Jacobowitz <drow@false.org>2007-02-05 20:02:51 +0000
commitb5057acde36b5a9a52e1505a29091ec17c0b6ac5 (patch)
tree3af441c1f29797ec327d9aeefc07fc57edcfa9bb /gdb/linux-thread-db.c
parent15ab5209f39005f3c4f7009d490b9bb459cc7707 (diff)
downloadgdb-b5057acde36b5a9a52e1505a29091ec17c0b6ac5.zip
gdb-b5057acde36b5a9a52e1505a29091ec17c0b6ac5.tar.gz
gdb-b5057acde36b5a9a52e1505a29091ec17c0b6ac5.tar.bz2
* linux-thread-db.c (check_for_thread_db): Return early if we have
no libthread_db support.
Diffstat (limited to 'gdb/linux-thread-db.c')
-rw-r--r--gdb/linux-thread-db.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index 3a18c9e..7e5e4eb 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -581,6 +581,10 @@ check_for_thread_db (void)
td_err_e err;
static int already_loaded;
+ /* Do nothing if we couldn't load libthread_db.so.1. */
+ if (td_ta_new_p == NULL)
+ return;
+
/* First time through, report that libthread_db was successfuly
loaded. Can't print this in in thread_db_load as, at that stage,
the interpreter and it's console haven't started. */