This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to avoid "but contains no code." in command "info line"?
On Tue, Mar 27, 2007 at 12:08:26PM +0800, qinwei@sunnorth.com.cn wrote:
> Hi, I tested this on x86:
>
> 1, compile & dump:
> gcc -o t -gstabs+ s2.s tp_bt1.c
> objdump -dhs t &>log1
> objdump -G t &>log2
You're using stabs. Don't! DWARF-2 works much better, especially for
strange ranges and multiple sections. If it still happens with
DWARF-2 I can look into it, but I'm not interested in trying to fix
this for stabs.
--
Daniel Jacobowitz
CodeSourcery