diff options
author | Daniel Jacobowitz <dan@debian.org> | 2007-02-05 20:02:51 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2007-02-05 20:02:51 +0000 |
commit | 2980a7af0afa195ee92dab540ce0d9e60acbc6da (patch) | |
tree | 218c6a886a2f17d0132b3bfc05012e22da69c42d /gdb/linux-thread-db.c | |
parent | e780bbf38b708f1d0e460cb5530d675b98314ec7 (diff) | |
download | gdb-2980a7af0afa195ee92dab540ce0d9e60acbc6da.tar.gz |
* 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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 3a18c9e0a75..7e5e4eb4fd3 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. */ |