aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc-linux-tdep.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-01-02 02:52:20 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-01-02 02:52:20 +0000
commitb5914469f9dd6b332ed51eea9b5954bd12375cd7 (patch)
treeaf3b71417c86de116ed14ea2f425f27394d45acb /gdb/ppc-linux-tdep.c
parent8da828f7603894565a82a0d3378277dc78c00f32 (diff)
downloadgdb-b5914469f9dd6b332ed51eea9b5954bd12375cd7.zip
gdb-b5914469f9dd6b332ed51eea9b5954bd12375cd7.tar.gz
gdb-b5914469f9dd6b332ed51eea9b5954bd12375cd7.tar.bz2
gdb/
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.
Diffstat (limited to 'gdb/ppc-linux-tdep.c')
-rw-r--r--gdb/ppc-linux-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c
index 9968621..07dd990 100644
--- a/gdb/ppc-linux-tdep.c
+++ b/gdb/ppc-linux-tdep.c
@@ -1075,7 +1075,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 + 2 * PPC_INSN_SIZE;
+ ppc_linux_entry_point_addr = addr + 3 * PPC_INSN_SIZE;
}
return ppc_linux_entry_point_addr;