diff options
Diffstat (limited to 'gdb/progspace.c')
-rw-r--r-- | gdb/progspace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/progspace.c b/gdb/progspace.c index 96f8acc..1361040 100644 --- a/gdb/progspace.c +++ b/gdb/progspace.c @@ -147,6 +147,9 @@ program_space::~program_space () no_shared_libraries (NULL, 0); exec_close (); free_all_objfiles (); + /* Defer breakpoint re-set because we don't want to create new + locations for this pspace which we're tearing down. */ + clear_symtab_users (SYMFILE_DEFER_BP_RESET); if (!gdbarch_has_shared_address_space (target_gdbarch ())) free_address_space (this->aspace); clear_section_table (&this->target_sections); @@ -168,8 +171,6 @@ program_space::free_all_objfiles () while (!objfiles_list.empty ()) objfiles_list.front ()->unlink (); - - clear_symtab_users (0); } /* See progspace.h. */ |