aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-01-05 01:46:30 +0000
committerDaniel Jacobowitz <drow@false.org>2002-01-05 01:46:30 +0000
commit356374e8218b459940741c482cde960b33ac1343 (patch)
treed0b0531ca2bbbf5d960f858dc5b7b9857de91ecd /gdb
parentb62818f6d8842adaecb70c5d2add6143400bbce8 (diff)
downloadfsf-binutils-gdb-356374e8218b459940741c482cde960b33ac1343.zip
fsf-binutils-gdb-356374e8218b459940741c482cde960b33ac1343.tar.gz
fsf-binutils-gdb-356374e8218b459940741c482cde960b33ac1343.tar.bz2
2002-01-04 Daniel Jacobowitz <drow@mvista.com>
* thread-db.c (thread_db_new_objfile): Do not enable thread_db for core files.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/thread-db.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 378a00e..b8904d5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-04 Daniel Jacobowitz <drow@mvista.com>
+
+ * thread-db.c (thread_db_new_objfile): Do not enable thread_db
+ for core files.
+
2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
* config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
diff --git a/gdb/thread-db.c b/gdb/thread-db.c
index 9244643..a704924 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. */