forked from Imagelibrary/binutils-gdb
gdb/
Revert: 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> Joel Brobecker <brobecker@adacore.com> Fix regression for gdb.cp/gdb2495.exp with gcc-4.7. * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to 3 times. * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and fall through into AT_ENTRY_POINT. (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust DUMMY_ADDR with it. * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase PPC_INSN_SIZE skip to 3 times.
This commit is contained in:
@@ -1074,7 +1074,7 @@ ppc_linux_displaced_step_location (struct gdbarch *gdbarch)
|
||||
/* Inferior calls also use the entry point as a breakpoint location.
|
||||
We don't want displaced stepping to interfere with those
|
||||
breakpoints, so leave space. */
|
||||
ppc_linux_entry_point_addr = addr + 3 * PPC_INSN_SIZE;
|
||||
ppc_linux_entry_point_addr = addr + 2 * PPC_INSN_SIZE;
|
||||
}
|
||||
|
||||
return ppc_linux_entry_point_addr;
|
||||
|
||||
Reference in New Issue
Block a user