diff options
author | Jeff Law <law@redhat.com> | 1993-12-16 21:10:24 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1993-12-16 21:10:24 +0000 |
commit | 27405a282e31a35b7c33dbbb22f438bd460d4a88 (patch) | |
tree | e77c33f2498c06f1d29e5622376ccba8d08fd5c0 /gdb/config | |
parent | 277b2d2b2314cce381694d046f5a11e7fed36e55 (diff) | |
download | gdb-27405a282e31a35b7c33dbbb22f438bd460d4a88.zip gdb-27405a282e31a35b7c33dbbb22f438bd460d4a88.tar.gz gdb-27405a282e31a35b7c33dbbb22f438bd460d4a88.tar.bz2 |
* config/m68k/nm-hp300bsd.h: Correctly identify 4.3BSD vs 4.4BSD.
* config/m68k/tm-hp300bsd.h (REMOTE_BPT_VECTOR): Define.
* config/m68k/tm-m68k.h (REMOTE_BPT_VECTOR): Allow targets to
override.
(REMOTE_BREAKPOINT): Likewise.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/m68k/nm-hp300bsd.h | 3 | ||||
-rw-r--r-- | gdb/config/m68k/tm-hp300bsd.h | 1 | ||||
-rw-r--r-- | gdb/config/m68k/tm-m68k.h | 9 |
3 files changed, 10 insertions, 3 deletions
diff --git a/gdb/config/m68k/nm-hp300bsd.h b/gdb/config/m68k/nm-hp300bsd.h index b05b388..baa3b24 100644 --- a/gdb/config/m68k/nm-hp300bsd.h +++ b/gdb/config/m68k/nm-hp300bsd.h @@ -20,7 +20,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Detect whether this is 4.3 or 4.4. */ #include <errno.h> -#ifdef EPROCUNAVAIL +#include <sys/param.h> +#ifdef BSD4_4 /* BSD 4.4 alpha or better */ diff --git a/gdb/config/m68k/tm-hp300bsd.h b/gdb/config/m68k/tm-hp300bsd.h index d65a673..37bb874 100644 --- a/gdb/config/m68k/tm-hp300bsd.h +++ b/gdb/config/m68k/tm-hp300bsd.h @@ -30,6 +30,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ This is the vector number used by traps to indicate a breakpoint. */ #define BPT_VECTOR 0x2 +#define REMOTE_BPT_VECTOR 0xf #define TARGET_NBPG 4096 diff --git a/gdb/config/m68k/tm-m68k.h b/gdb/config/m68k/tm-m68k.h index 7a8c52a..14b71cf 100644 --- a/gdb/config/m68k/tm-m68k.h +++ b/gdb/config/m68k/tm-m68k.h @@ -68,10 +68,15 @@ extern CORE_ADDR m68k_saved_pc_after_call PARAMS ((struct frame_info *)); #define BREAKPOINT {0x4e, (0x40 | BPT_VECTOR)} #endif -/* We always use vector 1 for the "remote" target. This is hardcoded in - m68k-stub.c. */ +/* We default to vector 1 for the "remote" target, but allow targets + to override. */ +#if !defined (REMOTE_BPT_VECTOR) #define REMOTE_BPT_VECTOR 1 +#endif + +#if !defined (REMOTE_BREAKPOINT) #define REMOTE_BREAKPOINT {0x4e, (0x40 | REMOTE_BPT_VECTOR)} +#endif /* If your kernel resets the pc after the trap happens you may need to define this before including this file. */ |