Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* question on gdbarch_skip_prologue()
@ 2002-03-06 22:28 David Mosberger
       [not found] ` <davidm@napali.hpl.hp.com>
  0 siblings, 1 reply; 5+ messages in thread
From: David Mosberger @ 2002-03-06 22:28 UTC (permalink / raw)
  To: gdb; +Cc: davidm

Hello,

I'm exploring the idea of changing the ia64 backend of gdb to use
unwind information instead of code-reading.  While looking into this,
I started to wonder how gdbarch_skip_prologue() should be implemented.
Some backends simply return the PC that was passed into the routine,
i.e., they always assume a zero-size prologue.  I'm tempted to do the
same because I worry that with optimized code, the very notion of a
prologue becomes quite fuzzy.  For example, a prologue might contain a
branch and, if so, there may not even be a single PC that corresponds
to the end of the prologue.

Are there any downsides to gdbarch_skip_prologue() always returning
the original PC?  Since the unwind info is accurate no matter what the
PC is, there are no problems with tracking the contents of preserved
(callee-saved) registers, but I'm wondering whether I'm missing
anything else.

Thanks,

	--david


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-03-07 19:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-06 22:28 question on gdbarch_skip_prologue() David Mosberger
     [not found] ` <davidm@napali.hpl.hp.com>
2002-03-07  0:12   ` Kevin Buettner
2002-03-07 10:13     ` David Mosberger
2002-03-07 10:42   ` Kevin Buettner
2002-03-07 11:55     ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox