aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/mn10300
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/config/mn10300
parentfbf1f3f1f6982710c5e379679ac4f18e795aeeb7 (diff)
downloadgdb-afcad54a90445ba65ca91b13341b75facc96521c.zip
gdb-afcad54a90445ba65ca91b13341b75facc96521c.tar.gz
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/config/mn10300')
-rw-r--r--gdb/config/mn10300/tm-mn10300.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/gdb/config/mn10300/tm-mn10300.h b/gdb/config/mn10300/tm-mn10300.h
index cce0470..4898df4 100644
--- a/gdb/config/mn10300/tm-mn10300.h
+++ b/gdb/config/mn10300/tm-mn10300.h
@@ -60,13 +60,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Pseudo register that contains true address of executing stack frame */
#define FP_REGNUM 31
-/* 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. */
-#define BREAKPOINT {0xff}
+/* BREAKPOINT_FROM_PC uses the program counter value to determine the
+ breakpoint that should be used */
+extern breakpoint_from_pc_fn mn10300_breakpoint_from_pc;
+#define BREAKPOINT_FROM_PC(pcptr, lenptr) mn10300_breakpoint_from_pc (pcptr, lenptr)
#define FUNCTION_START_OFFSET 0