From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13732 invoked by alias); 6 Aug 2008 21:39:02 -0000 Received: (qmail 13710 invoked by uid 22791); 6 Aug 2008 21:39:01 -0000 X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 06 Aug 2008 21:38:22 +0000 Received: from Relay2.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 7107D45C76; Wed, 6 Aug 2008 23:38:19 +0200 (CEST) From: Andreas Schwab To: Paul Koning Cc: Joe.Buck@synopsys.COM, mark.kettenis@xs4all.nl, drow@false.org, gcc@sources.redhat.com, sposelenov@emcraft.com, gdb@sources.redhat.com Subject: Re: Problem reading corefiles on ARM References: <4899C0FE.4010008@emcraft.com> <20080806152736.GA31492@caradoc.them.org> <200808061542.m76FgmUv017348@brahms.sibelius.xs4all.nl> <18585.51522.726379.18666@gargle.gargle.HOWL> <20080806170912.GL18206@synopsys.com> <18585.57711.850217.939413@gargle.gargle.HOWL> <20080806175125.GM18206@synopsys.com> <18585.59545.663358.551495@gargle.gargle.HOWL> X-Yow: MY income is ALL disposable! Date: Wed, 06 Aug 2008 21:39:00 -0000 In-Reply-To: <18585.59545.663358.551495@gargle.gargle.HOWL> (Paul Koning's message of "Wed, 6 Aug 2008 14:08:25 -0400") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00116.txt.bz2 Paul Koning writes: > That's sufficient for live debugging but not for corefiles. In that > case you do want caller-saved registers, because they may contain > local variable values that don't live in memory at the time of the > abort call. In an optimized build you can't expect any local variable to survive, since it may just be dead before the call, or its value may be unavailable for any other reason. The use of the noreturn attribute only adds little to this. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."