Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* 'finish' command on ppc64
@ 2010-11-08 12:10 Edjunior Barbosa Machado
  2010-11-08 12:25 ` Jan Kratochvil
  0 siblings, 1 reply; 3+ messages in thread
From: Edjunior Barbosa Machado @ 2010-11-08 12:10 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-08 15:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-08 12:10 'finish' command on ppc64 Edjunior Barbosa Machado
2010-11-08 12:25 ` Jan Kratochvil
2010-11-08 15:43   ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox