Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Edjunior Barbosa Machado <emachado@br.ibm.com>
To: gdb@sourceware.org
Subject: 'finish' command on ppc64
Date: Mon, 08 Nov 2010 12:10:00 -0000	[thread overview]
Message-ID: <4CD7E89D.9040502@br.ibm.com> (raw)

Hi,

I've noticed that the behavior of 'finish' command on ppc64 sometimes seems to be different to what happens on x86 and ppc32.

On ppc64, when issuing a 'finish' command inside a subroutine, when the routine is in another object file, the program stops at the same line of the subroutine call, while on x86, ppc32 and sometimes on ppc64 (when the routine is in the same object file) it always stops at the line after the call. It happens due to an extra nop instruction after function calls on ppc64 (required by the ABI), in order to allow the linker to insert additional code if necessary during the linking process.

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?

Thanks,
-- 
Edjunior


             reply	other threads:[~2010-11-08 12:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-08 12:10 Edjunior Barbosa Machado [this message]
2010-11-08 12:25 ` Jan Kratochvil
2010-11-08 15:43   ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CD7E89D.9040502@br.ibm.com \
    --to=emachado@br.ibm.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox