This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to skip function prologues with stabs debug infomation?
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Triple Yang <triple dot yang at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Fri, 19 Aug 2011 18:28:07 +0200
- Subject: Re: How to skip function prologues with stabs debug infomation?
- References: <CAGxstLS+e8yZxPTeLLYAmefTdVgsC_nJT-en41RUZhDOEspN1w@mail.gmail.com>
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