diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-08-08 17:39:10 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-08-08 17:39:10 +0000 |
commit | 9bdcbae7fe5d41beb308223fd65123fb700e2e1d (patch) | |
tree | e0adcc2a7e253923b77bb2b81e4fa0b1d3f8540a /gdb/objfiles.c | |
parent | f725025bcba912bb1cc099662f106f7dd870bdde (diff) | |
download | gdb-9bdcbae7fe5d41beb308223fd65123fb700e2e1d.zip gdb-9bdcbae7fe5d41beb308223fd65123fb700e2e1d.tar.gz gdb-9bdcbae7fe5d41beb308223fd65123fb700e2e1d.tar.bz2 |
* Makefile.in (objfiles.o, symfile.o): Update.
* objfiles.c: Include "expression.h" and "parser-defs.h".
(free_objfile): Clear global blocks.
* symfile.c: Include "parser-defs.h".
(clear_symtab_users): Clear global blocks.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 3419c6d..a3af5a4 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -34,6 +34,9 @@ #include "target.h" #include "bcache.h" #include "mdebugread.h" +#include "expression.h" +#include "parser-defs.h" + #include "gdb_assert.h" #include <sys/types.h> #include "gdb_stat.h" @@ -441,6 +444,12 @@ free_objfile (struct objfile *objfile) for example), so we need to call this here. */ clear_pc_function_cache (); + /* Clear globals which might have pointed into a removed objfile. + FIXME: It's not clear which of these are supposed to persist + between expressions and which ought to be reset each time. */ + expression_context_block = NULL; + innermost_block = NULL; + /* Check to see if the current_source_symtab belongs to this objfile, and if so, call clear_current_source_symtab_and_line. */ |