This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFC: Avoid calling XXX_skip_prologue for assembly code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]