aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-01-04 13:51:36 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-01-04 13:51:36 +0000
commit5931a2fae3e830d0eac105fc60c9652432be6a54 (patch)
tree2761dfebee9fe26435e127e3a40b96ffe31159b8 /gdb/arch-utils.c
parent15bbba8d0de01910ed3ccf46647a3d4525fc4848 (diff)
downloadgdb-5931a2fae3e830d0eac105fc60c9652432be6a54.zip
gdb-5931a2fae3e830d0eac105fc60c9652432be6a54.tar.gz
gdb-5931a2fae3e830d0eac105fc60c9652432be6a54.tar.bz2
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.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index caf372f..45dccad 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -85,7 +85,7 @@ displaced_step_at_entry_point (struct gdbarch *gdbarch)
We don't want displaced stepping to interfere with those
breakpoints, so leave space. */
gdbarch_breakpoint_from_pc (gdbarch, &addr, &bp_len);
- addr += bp_len * 3;
+ addr += bp_len * 2;
return addr;
}