2002-01-04 Daniel Jacobowitz <drow@mvista.com>

* thread-db.c (thread_db_new_objfile): Do not enable thread_db
        for core files.
This commit is contained in:
Daniel Jacobowitz
2002-01-05 01:46:30 +00:00
parent b62818f6d8
commit 356374e821
2 changed files with 8 additions and 1 deletions

View File

@ -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. */