How to avoid "but contains no code." in command "info line"?

Daniel Jacobowitz drow@false.org
Tue Mar 27 11:16:00 GMT 2007


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



More information about the Gdb mailing list