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: Getting pissed off by gdb. Please help with stepping in.


> From: Richard Earnshaw <rearnsha@arm.com>
> Date: Fri, 19 Mar 2010 09:51:04 +0000
> 
> On Thu, 2010-03-18 at 20:53 +0100, Mark Kettenis wrote:
>
> > Because different users expect different things.  I for example would
> > be somewhat annoyed by having to issue an extra "step".  And the
> > argument that this is what people that are familliar with Visual
> > Studio are used to is pretty weak.  GDB users are used the GDB behaviour!
> 
> They might be used to it, but that won't stop them hating it!  I'm in
> agreement with those that want step at the end of a function to not
> enter then next call.  It's a right royal pain having to have a sequence
> such as 
> 
>         step
>         <ret>
>         <ret>
>         <ret>
> 
> &*%^%^£$*&(*^ I've done one too many <ret>s, now I've got to restart my
> debugging session and do it all again
> 
>         step
>         <ret>
>         <ret>
>         finish
>         step

Sorry, but I must be missing something.  Howe can you end up doing too
many "step"s in the foo(bar()) scenario?  I mean, if you do one step
too many, finding yourself stepping into foo() wheras you really
wanted to step over foo(), you can simply use "finish".  There is no
need to restart your session.


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