From b5057acde36b5a9a52e1505a29091ec17c0b6ac5 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 5 Feb 2007 20:02:51 +0000 Subject: * linux-thread-db.c (check_for_thread_db): Return early if we have no libthread_db support. --- gdb/linux-thread-db.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/linux-thread-db.c') 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. */ -- cgit v1.1