How to skip function prologues with stabs debug infomation?

Jan Kratochvil jan.kratochvil@redhat.com
Fri Aug 19 16:28:00 GMT 2011


On Fri, 19 Aug 2011 18:08:54 +0200, Triple Yang wrote:
> is there any chance that we use symbol and line (sal) to skip function
> prologues with stabs debug infomation?
> And if not, why?

GDB does, why not?  The prologue skipping processes already decoded debug
info, no matter if it is DWARF or STABS.

gcc -Wall
Breakpoint 1 at 0x400478
gcc -gstabs
Temporary breakpoint 1 at 0x40047c: file 24.c, line 3.
(gdb) p/x $pc
$1 = 0x40047c
gcc -gdwarf-3
Temporary breakpoint 1 at 0x40047c: file 24.c, line 3.

Sure STABS is discouraged.


Regards,
Jan



More information about the Gdb mailing list