From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31197 invoked by alias); 20 Jul 2010 15:44:11 -0000 Received: (qmail 31187 invoked by uid 22791); 20 Jul 2010 15:44:11 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Jul 2010 15:44:06 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 4B018CB021C; Tue, 20 Jul 2010 17:44:02 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iE2C9t4VJ34O; Tue, 20 Jul 2010 17:44:02 +0200 (CEST) Received: from province.act-europe.fr (province.act-europe.fr [10.10.0.214]) by mel.act-europe.fr (Postfix) with ESMTP id 380B8CB0215; Tue, 20 Jul 2010 17:44:02 +0200 (CEST) Received: by province.act-europe.fr (Postfix, from userid 560) id 3F90B164869; Tue, 20 Jul 2010 17:44:02 +0200 (CEST) Date: Tue, 20 Jul 2010 15:44:00 -0000 From: Jerome Guitton To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [RFA] Nullified garbage-collected global variables Message-ID: <20100720154402.GB80443@adacore.com> References: <1278948088-15391-1-git-send-email-guitton@adacore.com> <20100715092204.GH14704@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100715092204.GH14704@adacore.com> User-Agent: Mutt/1.5.17 (2007-11-01) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00303.txt.bz2 Jerome Guitton (guitton@adacore.com): > Well, that sounded unlikely; then I double-checked, and experimental > results rejected my assumption. e.g. my example without --readnow: > > (gdb) p my_global_symbol > No symbol "my_global_symbol" in current context. > > and with --readnow: > > (gdb) p my_global_symbol > Cannot access memory at address 0x0 > > Thank you for catching that. I'll fix my patch. ...and I will add this case in a testcase if/when the patch is accepted.