RFC: Avoid calling XXX_skip_prologue for assembly code
Kevin Buettner
kevinb@cygnus.com
Fri Oct 5 13:58:00 GMT 2001
On Oct 5, 12:54pm, Fred Fish wrote:
> Does anyone have any issues with the attached patch?
>
> There is little point in attempting to skip over prologues if we
> already know for a fact that the source language is assembly.
>
> In fact, attempting to do so may actually be incorrect if the user has
> taken the output of the compiler, used that as the basis for his code,
> and hand optimized it in some way to produce an assembly version.
> There could still be prologue code in the hand crafted version.
[...]
> * symtab.c (find_function_start_sal): Do not attempt to skip over
> prologues for assembly functions.
The patch looks good to me. (Please note that I'm not the maintainer
though.)
Kevin
More information about the Gdb-patches
mailing list