diff options
author | Joel Brobecker <brobecker@gnat.com> | 2002-08-17 06:12:52 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2002-08-17 06:12:52 +0000 |
commit | c8edd8b484eaa59ae60a2b3c89f5772b98aefad1 (patch) | |
tree | 8d91d7df37ec6abf1d7f1a17ff682465cd5b1bda /gdb/breakpoint.c | |
parent | 238617f6788c017a70157ce0d37cb7a35088df00 (diff) | |
download | gdb-c8edd8b484eaa59ae60a2b3c89f5772b98aefad1.zip gdb-c8edd8b484eaa59ae60a2b3c89f5772b98aefad1.tar.gz 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/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 86e700e..2835390 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -2429,8 +2429,7 @@ bpstat_stop_status (CORE_ADDR *pc, int not_a_sw_breakpoint) trace/singlestep trap event, we would not want to subtract DECR_PC_AFTER_BREAK from the PC. */ - bp_addr = *pc - (not_a_sw_breakpoint && !SOFTWARE_SINGLE_STEP_P () ? - 0 : DECR_PC_AFTER_BREAK); + bp_addr = *pc - (not_a_sw_breakpoint ? 0 : DECR_PC_AFTER_BREAK); ALL_BREAKPOINTS_SAFE (b, temp) { |