diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-08-08 17:39:10 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-08-08 17:39:10 +0000 |
commit | 34eca5065f654fac8cf870595d74cac72589e770 (patch) | |
tree | 143131f29370d3baac1071b19745c1f6d602adaa /gdb/objfiles.c | |
parent | 0469d34fa6adcc57d43e70458bed48f5f7f6f1e0 (diff) | |
download | gdb-34eca5065f654fac8cf870595d74cac72589e770.tar.gz |
* 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 3419c6dfa2d..a3af5a41f14 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. */ |