Re: The gdb x86 function prologue parser

Eli Zaretskii
2005-06-12T08:44:32Z

> Date: Sun, 12 Jun 2005 09:48:07 +0200 (CEST)
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> CC: gdb-patches@sources.redhat.com
>
> 1. Finding out the gory details about the stack frame being executed.
>
> 2. Determining the first bit of code after the prologue, i.e. the
> first bit of real code.
>
> For (2) following jumps is usually a very bad thing to do.
>
> That said, I'm not sure this dual usage of the prologue scanner really
> makes sense these days. There is a certain lack of consistency in gdb
> how we handle this anyway. Maybe the best thing to do is to not use
> the prologue scanner for 2 at all.

In what situations would GDB need to use (2), and what are the
alternative(s)?