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: 'finish' command on ppc64


On Mon, 08 Nov 2010 13:10:05 +0100, Edjunior Barbosa Machado wrote:
> So, I'd like to know if there is any rule regarding of which line of code
> should be pointed after issue a 'finish' command. Should be always one line
> after the subroutine call? Is this behavior considered a bug or it's just
> working as expected?

It was discussed at:
	Re: [FYI] Inlining support, rough patch
	http://sourceware.org/ml/gdb-patches/2009-06/msg00786.html

with some Fedora patch (later dropped) so that after `finish' GDB would
_always_ stay at the caller line.

Currently testcases expect both cases:
gdb.base/finish.exp
    # Some architectures will have one or more instructions after the
    # call instruction which still is part of the call sequence, so we
    # must be prepared for a "finish" to show us the void_func call
    # again as well as the statement after.


Regards,
Jan


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