aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorFernando Nasser <fnasser@redhat.com>2001-12-19 17:57:42 +0000
committerFernando Nasser <fnasser@redhat.com>2001-12-19 17:57:42 +0000
commit80fcf3f0239ba0b52443e722388fd329552e64a1 (patch)
tree974ce7a13003bd315305dd5b24aaf2246d9221d2 /gdb/arm-tdep.c
parentfb6ecb0ffc17d5942c04c8c6fc0abeefd7e93e54 (diff)
downloadfsf-binutils-gdb-80fcf3f0239ba0b52443e722388fd329552e64a1.zip
fsf-binutils-gdb-80fcf3f0239ba0b52443e722388fd329552e64a1.tar.gz
fsf-binutils-gdb-80fcf3f0239ba0b52443e722388fd329552e64a1.tar.bz2
2001-12-19 Fernando Nasser <fnasser@redhat.com>
* config/arm/tm-arm.h: Properly define SOFTWARE_SINGLE_STEP_P. Always define SOFTWARE_SINGLE_STEP. * config/arm/tm-embed.h: Properly define SOFTWARE_SINGLE_STEP_P. * arm-tdep.c (arm_get_next_pc, thumb_get_next_pc, bitcount, shifted_reg_val): Always compile these functions. (arm_software_single_step): Fix second argument in function calls.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index bec9c80..434b26f 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -1532,7 +1532,6 @@ condition_true (unsigned long cond, unsigned long status_reg)
return 1;
}
-#if SOFTWARE_SINGLE_STEP_P
/* Support routines for single stepping. Calculate the next PC value. */
#define submask(x) ((1L << ((x) + 1)) - 1)
#define bit(obj,st) (((obj) >> (st)) & 1)
@@ -1887,12 +1886,11 @@ arm_software_single_step (ignore, insert_bpt)
if (insert_bpt)
{
next_pc = arm_get_next_pc (read_register (PC_REGNUM));
- target_insert_breakpoint (next_pc, &break_mem);
+ target_insert_breakpoint (next_pc, break_mem);
}
else
- target_remove_breakpoint (next_pc, &break_mem);
+ target_remove_breakpoint (next_pc, break_mem);
}
-#endif /* SOFTWARE_SINGLE_STEP_P */
#include "bfd-in2.h"
#include "libcoff.h"