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: Why running the next command will jump back to the previous line position


> > 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


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