* config/m68k/nm-hp300bsd.h: Correctly identify 4.3BSD vs 4.4BSD.
authorJeff Law <law@redhat.com>
Thu, 16 Dec 1993 21:10:24 +0000 (21:10 +0000)
committerJeff Law <law@redhat.com>
Thu, 16 Dec 1993 21:10:24 +0000 (21:10 +0000)
        * config/m68k/tm-hp300bsd.h (REMOTE_BPT_VECTOR): Define.

        * config/m68k/tm-m68k.h (REMOTE_BPT_VECTOR): Allow targets to
        override.
        (REMOTE_BREAKPOINT): Likewise.

gdb/ChangeLog
gdb/config/m68k/nm-hp300bsd.h
gdb/config/m68k/tm-hp300bsd.h
gdb/config/m68k/tm-m68k.h

index 0e6d839971f7745eae2e44e7067125d382458309..cd28cda1ef09589f83b2e030fb501f0778086b38 100644 (file)
@@ -1,3 +1,13 @@
+Thu Dec 16 13:08:01 1993  Jeffrey A. Law  (law@snake.cs.utah.edu)
+
+       * 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.
+
 Mon Dec 13 20:17:39 1993  Per Bothner  (bothner@kalessin.cygnus.com)
 
        Implement support for Chill POWERSETs.
index b05b388940432202da0a6724ec4193a545e30595..baa3b24572ec7fcc1cab03e846da9dcfc4e117c6 100644 (file)
@@ -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 */
 
index d65a673f178dc9ff10f5a05627f639885d7ec3b9..37bb874dca4bb728993970e57828ebbc5ca65adf 100644 (file)
@@ -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
 
index 7a8c52a33a6db720b1caec73ecdefc6b03d08c4b..14b71cff79c1b6706d6b06330fd20f872007c677 100644 (file)
@@ -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.  */
This page took 0.029826 seconds and 4 git commands to generate.