From f86172a554d0c568bc134cb7816f41df1c739475 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 20 Oct 2006 01:08:14 +0000 Subject: [PATCH] * linux-thread-db.c (check_for_thread_db): Don't attempt to use thread_db for remote targets. * remote.c (remote_new_objfile): Always call predecessor on new_objfile event chain. --- gdb/ChangeLog | 7 +++++++ gdb/linux-thread-db.c | 4 ++++ gdb/remote.c | 3 +-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1c11ec268f9..51e0ba99f8f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2006-10-19 Ulrich Weigand + + * linux-thread-db.c (check_for_thread_db): Don't attempt to use + thread_db for remote targets. + * remote.c (remote_new_objfile): Always call predecessor on + new_objfile event chain. + 2006-10-19 Joel Brobecker * solib.c (libpthread_solib_p): New function. diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index c8612085754..a6d05f072ba 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -599,6 +599,10 @@ check_for_thread_db (void) if (!target_has_execution) return; + /* Don't attempt to use thread_db for remote targets. */ + if (!target_can_run (¤t_target)) + return; + /* Initialize the structure that identifies the child process. */ proc_handle.pid = GET_PID (inferior_ptid); diff --git a/gdb/remote.c b/gdb/remote.c index 98fe59d6331..66859719a0d 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -6126,8 +6126,7 @@ remote_new_objfile (struct objfile *objfile) remote_check_symbols (objfile); } /* Call predecessor on chain, if any. */ - if (remote_new_objfile_chain != 0 && - remote_desc == 0) + if (remote_new_objfile_chain) remote_new_objfile_chain (objfile); } -- 2.30.2