Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/gdb/gdb Add Thumb breakpoints
details: https://anonhg.NetBSD.org/src/rev/c9d5979277de
branches: trunk
changeset: 569538:c9d5979277de
user: rearnsha <rearnsha%NetBSD.org@localhost>
date: Mon Aug 23 13:54:29 2004 +0000
description:
Add Thumb breakpoints
diffstat:
gnu/dist/gdb/gdb/armnbsd-tdep.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (29 lines):
diff -r 2973474b8750 -r c9d5979277de gnu/dist/gdb/gdb/armnbsd-tdep.c
--- a/gnu/dist/gdb/gdb/armnbsd-tdep.c Mon Aug 23 13:51:05 2004 +0000
+++ b/gnu/dist/gdb/gdb/armnbsd-tdep.c Mon Aug 23 13:54:29 2004 +0000
@@ -32,6 +32,8 @@
override the default little-endian breakpoint. */
static const char arm_nbsd_arm_le_breakpoint[] = {0x11, 0x00, 0x00, 0xe6};
static const char arm_nbsd_arm_be_breakpoint[] = {0xe6, 0x00, 0x00, 0x11};
+static const char arm_nbsd_thumb_le_breakpoint[] = {0xfe, 0xde};
+static const char arm_nbsd_thumb_be_breakpoint[] = {0xde, 0xfe};
static int
arm_netbsd_aout_in_solib_call_trampoline (CORE_ADDR pc, char *name)
@@ -52,12 +54,16 @@
if (gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG)
{
tdep->arm_breakpoint = arm_nbsd_arm_be_breakpoint;
+ tdep->thumb_breakpoint = arm_nbsd_thumb_be_breakpoint;
tdep->arm_breakpoint_size = sizeof (arm_nbsd_arm_be_breakpoint);
+ tdep->thumb_breakpoint_size = sizeof (arm_nbsd_thumb_be_breakpoint);
}
else
{
tdep->arm_breakpoint = arm_nbsd_arm_le_breakpoint;
+ tdep->thumb_breakpoint = arm_nbsd_thumb_le_breakpoint;
tdep->arm_breakpoint_size = sizeof (arm_nbsd_arm_le_breakpoint);
+ tdep->thumb_breakpoint_size = sizeof (arm_nbsd_thumb_le_breakpoint);
}
tdep->jb_pc = JB_PC;
Home |
Main Index |
Thread Index |
Old Index