aboutsummaryrefslogtreecommitdiff
path: root/gdb/mn10300-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-11-24 13:49:00 +0000
committerAndrew Cagney <cagney@redhat.com>1998-11-24 13:49:00 +0000
commitafcad54a90445ba65ca91b13341b75facc96521c (patch)
treefc90a9c47d68bdf243ba26027fc7e27283c9660d /gdb/mn10300-tdep.c
parentfbf1f3f1f6982710c5e379679ac4f18e795aeeb7 (diff)
downloadfsf-binutils-gdb-afcad54a90445ba65ca91b13341b75facc96521c.zip
fsf-binutils-gdb-afcad54a90445ba65ca91b13341b75facc96521c.tar.gz
fsf-binutils-gdb-afcad54a90445ba65ca91b13341b75facc96521c.tar.bz2
CARP: *BREAKPOINT*
Convert mn10300, MIPS and powerpc/rs6000 targets to use BREAKPOINT_FROM_PC Delete global variable memory_breakpoint_size. Use BREAKPOINT_FROM_PC instead.
Diffstat (limited to 'gdb/mn10300-tdep.c')
-rw-r--r--gdb/mn10300-tdep.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c
index 1513319..44e9f6b 100644
--- a/gdb/mn10300-tdep.c
+++ b/gdb/mn10300-tdep.c
@@ -58,6 +58,23 @@ mn10300_use_struct_convention (gcc_p, type)
return (TYPE_NFIELDS (type) > 1 || TYPE_LENGTH (type) > 8);
}
+/* The breakpoint instruction must be the same size as the smallest
+ instruction in the instruction set.
+
+ The Matsushita mn10x00 processors have single byte instructions
+ so we need a single byte breakpoint. Matsushita hasn't defined
+ one, so we defined it ourselves. */
+
+unsigned char *
+mn10300_breakpoint_from_pc (bp_addr, bp_size)
+ CORE_ADDR *bp_addr;
+ int *bp_size;
+{
+ static char breakpoint[] = {0xff};
+ *bp_size = 1;
+ return breakpoint;
+}
+
/* Fix fi->frame if it's bogus at this point. This is a helper
function for mn10300_analyze_prologue. */