public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Mark Kettenis <kettenis@gnu.org>
Cc: gdb@sources.redhat.com
Subject: Re: [RFC] Is skip_prologue_using_sal actually usable?
Date: Tue, 09 Nov 2004 14:51:00 -0000	[thread overview]
Message-ID: <20041109143459.GA7930@nevyn.them.org> (raw)
In-Reply-To: <200411091353.iA9DrKjH090730@elgar.sibelius.xs4all.nl>

On Tue, Nov 09, 2004 at 02:53:20PM +0100, Mark Kettenis wrote:
>    Date: Mon, 8 Nov 2004 21:43:14 -0500
>    From: Daniel Jacobowitz <drow@false.org>
> 
>    If you want the first instruction that is not part of the prologue,
>    then you have no more reason to skip prologues at all.  My
>    understanding is that prologue skipping accomplishes two things:
> 
> B?   - Get the arguments into their save slots so that we can find
>        and display them.
> 
> A?   - Get the frame pointer into a sane state so we can backtrace.
> 
>    Well, we've taken care of (A) already - the new frame code requires
>    being able to backtrace from the first instruction of a function,
>    and we do it.  (I think we fall down more often in the epilogue than we
>    do in the prologue now.)
> 
> Assuming the second point is (A) and the first one is (B):

Oops -)  Yes, that's what I meant.

> Although it sounds plausible I think it's something we should revisit
> when GDB actually supports "locations" properly.
> 
> In the mean time, we really should strive for some consistency in
> where we put function breakpoints.  What do you think about my
> statement that too early is better than to late?

I don't think I agree.  We used to have a lot of problems with placing
breakpoints after branches; that, obviously, is too late (excepting the
PIC register setup).  But I find the inaccuracy of displayed function
arguments to be my single biggest day-to-day problem in using GDB. 
Just moments ago I wasted a couple minutes discovering that a pointer
hadn't been saved to the stack yet.

-- 
Daniel Jacobowitz

  reply	other threads:[~2004-11-09 14:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-07 14:28 Mark Kettenis
2004-11-09  2:43 ` Randolph Chung
2004-11-09 10:16 ` Daniel Jacobowitz
2004-11-09 14:35   ` Mark Kettenis
2004-11-09 14:51     ` Daniel Jacobowitz [this message]
2004-11-09 14:56 ` Andrew Cagney
2004-11-09 16:07   ` Mark Kettenis
2004-11-09 16:55   ` 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=20041109143459.GA7930@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=kettenis@gnu.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).