This is the mail archive of the gdb@sourceware.org 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]
Other format: [Raw text]

Re: How to skip function prologues with stabs debug infomation?


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


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