aboutsummaryrefslogtreecommitdiff
path: root/gdb/alpha-osf1-tdep.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2002-08-17 06:12:52 +0000
committerJoel Brobecker <brobecker@gnat.com>2002-08-17 06:12:52 +0000
commitc8edd8b484eaa59ae60a2b3c89f5772b98aefad1 (patch)
tree8d91d7df37ec6abf1d7f1a17ff682465cd5b1bda /gdb/alpha-osf1-tdep.c
parent238617f6788c017a70157ce0d37cb7a35088df00 (diff)
downloadfsf-binutils-gdb-c8edd8b484eaa59ae60a2b3c89f5772b98aefad1.zip
fsf-binutils-gdb-c8edd8b484eaa59ae60a2b3c89f5772b98aefad1.tar.gz
fsf-binutils-gdb-c8edd8b484eaa59ae60a2b3c89f5772b98aefad1.tar.bz2
* alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
procfs appears to be broken when debugging on multi-processor machines. So enable software single stepping in order to avoid using the procfs interface to do next/step operations, using internal breakpoints instead. * infrun.c (handle_inferior_event): Readjust the stop_pc by DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to make this pc address equal to the value it would have if the system stepping capability was used. Also set a new flag used to ensure that we don't readjust the PC one more time later. * breakpoint.c (bpstat_stop_status): Do not adjust the PC address by DECR_PC_AFTER_BREAK when software single step is in use for this architecture, as this has already been taken care of in handle_inferior_event().
Diffstat (limited to 'gdb/alpha-osf1-tdep.c')
-rw-r--r--gdb/alpha-osf1-tdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/alpha-osf1-tdep.c b/gdb/alpha-osf1-tdep.c
index 1232051..ece5e26 100644
--- a/gdb/alpha-osf1-tdep.c
+++ b/gdb/alpha-osf1-tdep.c
@@ -58,6 +58,10 @@ alpha_osf1_init_abi (struct gdbarch_info info,
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
set_gdbarch_pc_in_sigtramp (gdbarch, alpha_osf1_pc_in_sigtramp);
+ /* The next/step support via procfs on OSF1 is broken when running
+ on multi-processor machines. We need to use software single stepping
+ instead. */
+ set_gdbarch_software_single_step (gdbarch, alpha_software_single_step);
tdep->skip_sigtramp_frame = alpha_osf1_skip_sigtramp_frame;
tdep->sigcontext_addr = alpha_osf1_sigcontext_addr;