From c47793da968c7420c6e7c56500d876d83a0705c7 Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Tue, 30 Jun 1992 01:34:18 +0000 Subject: [PATCH] Allow BREAKPOINT to be overridden by -D (for Adobe). --- gdb/ChangeLog | 4 ++++ gdb/tm-29k.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 75839fb3420..2fb16a7fe94 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Mon Jun 29 18:30:57 1992 John Gilmore (gnu at cygnus.com) + + * tm-29k.h (BREAKPOINT): Allow it to be overridden with -D. + Mon Jun 29 16:30:25 1992 Fred Fish (fnf@cygnus.com) * dbxread.c, i386-pinsn.c, i386-tdep.c, regex.c, solib.c, symmisc.c, diff --git a/gdb/tm-29k.h b/gdb/tm-29k.h index 825cf96f31a..c1c30ca3b74 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