mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 15:17:13 +08:00
* symfile.c (clear_symtab_users): Call
clear_current_source_symtab_and_line first.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* symfile.c (clear_symtab_users): Call
|
||||||
|
clear_current_source_symtab_and_line first.
|
||||||
|
|
||||||
2005-03-08 Nathan Sidwell <nathan@codesourcery.com>
|
2005-03-08 Nathan Sidwell <nathan@codesourcery.com>
|
||||||
|
|
||||||
* ax-gdb.c (gen_expr): Add UNOP_PLUS case.
|
* ax-gdb.c (gen_expr): Add UNOP_PLUS case.
|
||||||
|
@ -2367,12 +2367,16 @@ clear_symtab_users (void)
|
|||||||
{
|
{
|
||||||
/* Someday, we should do better than this, by only blowing away
|
/* Someday, we should do better than this, by only blowing away
|
||||||
the things that really need to be blown. */
|
the things that really need to be blown. */
|
||||||
|
|
||||||
|
/* Clear the "current" symtab first, because it is no longer valid.
|
||||||
|
breakpoint_re_set may try to access the current symtab. */
|
||||||
|
clear_current_source_symtab_and_line ();
|
||||||
|
|
||||||
clear_value_history ();
|
clear_value_history ();
|
||||||
clear_displays ();
|
clear_displays ();
|
||||||
clear_internalvars ();
|
clear_internalvars ();
|
||||||
breakpoint_re_set ();
|
breakpoint_re_set ();
|
||||||
set_default_breakpoint (0, 0, 0, 0);
|
set_default_breakpoint (0, 0, 0, 0);
|
||||||
clear_current_source_symtab_and_line ();
|
|
||||||
clear_pc_function_cache ();
|
clear_pc_function_cache ();
|
||||||
if (deprecated_target_new_objfile_hook)
|
if (deprecated_target_new_objfile_hook)
|
||||||
deprecated_target_new_objfile_hook (NULL);
|
deprecated_target_new_objfile_hook (NULL);
|
||||||
|
Reference in New Issue
Block a user