This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Why running the next command will jump back to the previous line position
On 2011-10-29 18:39, ééä wrote:
>>> 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
>
Well, thanks. It looks like there is a similar gcc bug report.
see:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49951
It looks like at this revision:
http://gcc.gnu.org/viewcvs?view=revision&revision=149722
I have no experience to dig into gcc source.... Hope the GCC guys can help.
asmwarrior
ollydbg from codeblocks' forum