Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "H. J. Lu" <hjl@lucon.org>
To: Mark Kettenis <kettenis@chello.nl>
Cc: eliz@gnu.org, cagney@gnu.org, gdb@sources.redhat.com
Subject: Re: [6.2] PROBLEMS file
Date: Thu, 22 Jul 2004 21:38:00 -0000	[thread overview]
Message-ID: <20040722213327.GA16623@lucon.org> (raw)
In-Reply-To: <200407222051.i6MKpm8V003302@elgar.kettenis.dyndns.org>

On Thu, Jul 22, 2004 at 10:51:48PM +0200, Mark Kettenis wrote:
>    Date: Wed, 21 Jul 2004 14:16:32 -0700
>    From: "H. J. Lu" <hjl@lucon.org>
> 
>    FYI, the i386 psABI, which is also used by the x86-64 psABI, says:
> 
>    %ebp	The content of this register is unspecified at process
> 	   initialization time, but the user code should mark the
> 	   deepest stack frame by setting the frame pointer to zero.
> 	   No other frame's %ebp should have a zero value.
> 
> Which contradicts the optional nature of %ebp as a frame pointer.  So
> the standard contradicts itself.  Anyway, in practice the %ebp == 0
> condition is useless.

Not at all. Standard is quite clear to me. According to i386 psABI,
%ebp has to be preserved for the caller. If the first instruction of a
function in an ABI compliant application is to clear %ebp, it must be
marking the deepest stack frame.

But I can be convinced if you can show me an example otherwise.


H.J.


  parent reply	other threads:[~2004-07-22 21:33 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-19  3:51 Andrew Cagney
2004-07-19 21:01 ` Eli Zaretskii
2004-07-21 21:12   ` Mark Kettenis
2004-07-21 22:05     ` H. J. Lu
2004-07-22 20:58       ` Mark Kettenis
2004-07-22 21:33         ` Joel Brobecker
2004-07-22 21:38         ` H. J. Lu [this message]
2004-07-21 22:17     ` Andrew Cagney
2004-07-22  7:13       ` Eli Zaretskii
2004-07-22 13:04     ` Dave Korn
2004-07-22 15:17       ` Daniel Jacobowitz
2004-07-22 12:14 Michael Elizabeth Chastain
2004-07-22 18:28 ` Joel Brobecker
2004-07-22 19:26   ` Eli Zaretskii
2004-07-22 20:51     ` Mark Kettenis
2004-07-23  9:24       ` Eli Zaretskii
2004-07-23 11:22         ` Mark Kettenis
2004-07-23 12:03           ` Eli Zaretskii
2004-07-23 12:13             ` Eli Zaretskii
2004-07-23 12:16             ` Dave Korn
2004-07-23 13:36             ` Mark Kettenis
2004-07-23 16:17               ` Eli Zaretskii
2004-07-23  5:44 Michael Elizabeth Chastain
2004-07-23 20:44 ` Andrew Cagney

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=20040722213327.GA16623@lucon.org \
    --to=hjl@lucon.org \
    --cc=cagney@gnu.org \
    --cc=eliz@gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=kettenis@chello.nl \
    /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