From f80e8425d0955517e9f722af31f3ccb960628bbb Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sat, 5 Jan 2002 01:46:30 +0000 Subject: [PATCH] 2002-01-04 Daniel Jacobowitz * thread-db.c (thread_db_new_objfile): Do not enable thread_db for core files. --- gdb/ChangeLog | 5 +++++ gdb/thread-db.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 378a00e96b..b8904d5195 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-01-04 Daniel Jacobowitz + + * thread-db.c (thread_db_new_objfile): Do not enable thread_db + for core files. + 2002-01-04 Jason Thorpe * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o. diff --git a/gdb/thread-db.c b/gdb/thread-db.c index 924464394e..a704924c2e 100644 --- a/gdb/thread-db.c +++ b/gdb/thread-db.c @@ -482,7 +482,9 @@ thread_db_new_objfile (struct objfile *objfile) { td_err_e err; - if (objfile == NULL) + /* Don't attempt to use thread_db on targets which can not run + (core files). */ + if (objfile == NULL || !target_has_execution) { /* All symbols have been discarded. If the thread_db target is active, deactivate it now. */ -- 2.11.0