aboutsummaryrefslogtreecommitdiff
path: root/gdb/tm-29k.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-06-30 01:34:18 +0000
committerJohn Gilmore <gnu@cygnus>1992-06-30 01:34:18 +0000
commitc47793da968c7420c6e7c56500d876d83a0705c7 (patch)
tree3f1e9baddf089804ffd5b86f230a9469463b0fa7 /gdb/tm-29k.h
parent8bcd7db26c7f37d4e172ca433492422fc1dd5f7a (diff)
downloadgdb-c47793da968c7420c6e7c56500d876d83a0705c7.zip
gdb-c47793da968c7420c6e7c56500d876d83a0705c7.tar.gz
gdb-c47793da968c7420c6e7c56500d876d83a0705c7.tar.bz2
Allow BREAKPOINT to be overridden by -D (for Adobe).
Diffstat (limited to 'gdb/tm-29k.h')
-rw-r--r--gdb/tm-29k.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/tm-29k.h b/gdb/tm-29k.h
index 825cf96..c1c30ca 100644
--- a/gdb/tm-29k.h
+++ b/gdb/tm-29k.h
@@ -80,12 +80,16 @@ CORE_ADDR skip_prologue ();
/* Sequence of bytes for breakpoint instruction. */
/* ASNEQ 0x50, gr1, gr1
- The trap number 0x50 is chosen arbitrarily. */
+ The trap number 0x50 is chosen arbitrarily.
+ We let the command line (or previously included files) override this
+ setting. */
+#ifndef BREAKPOINT
#if TARGET_BYTE_ORDER == BIG_ENDIAN
#define BREAKPOINT {0x72, 0x50, 0x01, 0x01}
#else /* Target is little-endian. */
#define BREAKPOINT {0x01, 0x01, 0x50, 0x72}
#endif /* Target is little-endian. */
+#endif /* BREAKPOINT */
/* Amount PC must be decremented by after a breakpoint.
This is often the number of bytes in BREAKPOINT