This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Clear some global variables when reloading object files
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: drow at false dot org
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 4 Aug 2006 23:51:23 +0200 (CEST)
- Subject: Re: [rfc] Clear some global variables when reloading object files
- References: <20060803214642.GA6303@nevyn.them.org>
> Date: Thu, 3 Aug 2006 17:46:42 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> Mark, I encountered a problem today with expression_context_block that
> sounded exactly like what you encountered with innermost_block. I
> suspect the right thing to do would be to clean up the global variables
> entirely, but I agree that it would be a terrible mess to untangle,
> and this seems like the next best thing. What do you think?
Looks reasonable to me.
> 2006-08-03 Daniel Jacobowitz <dan@codesourcery.com>
>
> * 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.