Why running the next command will jump back to the previous line position

陳韋任 chenwj@iis.sinica.edu.tw
Sat Oct 29 14:14:00 GMT 2011


> > Maybe GCC could produce there DW_LNS_negate_stmt so that the variable
> > declaration line is still shown in backtraces (if the destructor crashes) but
> > it is skipped over during stepping/nexting; but GDB currently would not show
> > such line in backtraces, GCC currently does not produce DW_LNS_negate_stmt
> > anyway.
> > 
> 
> I'm not quite sure what DW_LNS_negate_stmt means, any way, I will forward my question to GCC maillist.

  GCC should emit debug information so that GDB can work correctly.
You can checkout http://dwarfstd.org/doc/Dwarf3.pdf .

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667



More information about the Gdb mailing list