Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Paul Koning <Paul_Koning@dell.com>
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
Date: Wed, 06 Aug 2008 21:39:00 -0000	[thread overview]
Message-ID: <je7iat3juh.fsf@sykes.suse.de> (raw)
In-Reply-To: <18585.59545.663358.551495@gargle.gargle.HOWL> (Paul Koning's 	message of "Wed, 6 Aug 2008 14:08:25 -0400")

Paul Koning <Paul_Koning@dell.com> 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."


  reply	other threads:[~2008-08-06 21:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-06 15:20 Sergei Poselenov
2008-08-06 15:28 ` Daniel Jacobowitz
2008-08-06 15:45   ` Mark Kettenis
2008-08-06 15:51     ` Daniel Jacobowitz
2008-08-06 16:02     ` Paul Koning
2008-08-06 17:10       ` Joe Buck
2008-08-06 17:39         ` Paul Koning
2008-08-06 17:52           ` Joe Buck
2008-08-06 18:11             ` Paul Koning
2008-08-06 21:39               ` Andreas Schwab [this message]
2008-08-06 21:58                 ` Joe Buck
2008-08-07 13:30                   ` Paul Koning
2008-08-07 16:56                     ` Joe Buck
2008-08-07 17:29                       ` Paul Koning
2008-08-07  9:30   ` Sergei Poselenov
2008-08-07 13:44     ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=je7iat3juh.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=Joe.Buck@synopsys.COM \
    --cc=Paul_Koning@dell.com \
    --cc=drow@false.org \
    --cc=gcc@sources.redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=mark.kettenis@xs4all.nl \
    --cc=sposelenov@emcraft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox