summaryrefslogtreecommitdiff
path: root/gdb/thread-db.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2002-01-05 01:46:30 +0000
committerDaniel Jacobowitz <dan@debian.org>2002-01-05 01:46:30 +0000
commitf80e8425d0955517e9f722af31f3ccb960628bbb (patch)
tree758747991a91a5f75918673d637c7fb534d1a0c0 /gdb/thread-db.c
parentb06dd8ea350856c6b4ce9fb60408b9b0ccd9cbcf (diff)
downloadgdb-f80e8425d0955517e9f722af31f3ccb960628bbb.tar.gz
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/thread-db.c')
-rw-r--r--gdb/thread-db.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/thread-db.c b/gdb/thread-db.c
index 924464394eb..a704924c2e0 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. */