This is the mail archive of the gdb-patches@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: [RFC/RFA] continue stepping if landed in new range of same line


> Might need (c-toggle-auto-state 1) too (C-c C-a).

Indeed, that enabled the auto-indenting. Thanks! I used to be an emacs
aficionado but a couple of years no slow (and shared) Solaris machines
had me converted to vim ;-).

> To be honest, I find this behavior a bit surprising.

Me too. I don't really like to abritrarily change the behavior of
the debugger, which is why I was trying to work around it, but it looks
like from our experiments that the originally intended behavior might
no longer be possible because of the current debugging info. And it looks
like it has been so for a number of years already - I looked at the
output generated by GCC 3.2.3, and we have the same line table.

I wouldn't mind removing the code altogether; as a bonus it would also
reduce the size of handle_inferior_event. I can send a patch now, or
I can poll users on gdb@ and see what they think... Honestly, given
the likeliness of one-line functions, I'd just say it's not very
important to keep that special case.

2007-12-22  Joel Brobecker  <brobecker@adacore.com>

        * infrun.c (handle_inferior_event): Remove code that made us
        stop when stepping into the last line of the current function.

Tested on x86-linux, no regression.

-- 
Joel

Attachment: hie.diff
Description: Text document


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