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


On Sat, 29 Oct 2011 09:45:41 +0200, asmwarrior wrote:
> When leaving the main function body, the instruction piece of the destructor
> will reached, and gdb just refer to the declaration line. So that gdb put
> the current source line back to "std::map<int, std::string>  m;" again.
> 
> My explanation is right?

yes.


> I'm not quite sure what DW_LNS_negate_stmt means, any way, I will forward my
> question to GCC maillist.

DWARF:
is_stmt
A boolean indicating that the current instruction is a recommended breakpoint
location.  A recommended breakpoint location is intended to “represent” a line,
a statement and/or a semantically distinct subpart of a statement.

I am not convinced myself it is right to hide destructor calls; but I am not
C++ developer.


Regards,
Jan


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