From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23834 invoked by alias); 4 Aug 2006 21:52:04 -0000 Received: (qmail 23825 invoked by uid 22791); 4 Aug 2006 21:52:03 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 04 Aug 2006 21:51:59 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id k74LpNMC030035; Fri, 4 Aug 2006 23:51:23 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.6/8.13.6) with ESMTP id k74LpNQp025676; Fri, 4 Aug 2006 23:51:23 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.6/8.13.6/Submit) id k74LpN6f018793; Fri, 4 Aug 2006 23:51:23 +0200 (CEST) Date: Fri, 04 Aug 2006 21:52:00 -0000 Message-Id: <200608042151.k74LpN6f018793@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: gdb-patches@sourceware.org In-reply-to: <20060803214642.GA6303@nevyn.them.org> (message from Daniel Jacobowitz on Thu, 3 Aug 2006 17:46:42 -0400) Subject: Re: [rfc] Clear some global variables when reloading object files References: <20060803214642.GA6303@nevyn.them.org> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00031.txt.bz2 > Date: Thu, 3 Aug 2006 17:46:42 -0400 > From: Daniel Jacobowitz > > 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 > > * 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.