Force remote gdb code to use signal numbers and not ISA specific trap numbers.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 8 Nov 2006 04:40:54 +0000 (23:40 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 8 Nov 2006 04:40:54 +0000 (23:40 -0500)
--HG--
extra : convert_revision : 4f45a4b48e3993ac6991db2afffbce2e666eab6c

src/arch/alpha/kgdb.h
src/arch/alpha/system.cc

index 104244d0b271f54c79f01981381259cb760bb4cc..912cf6d450216fe2097f0e3203ff56fdd21514d7 100644 (file)
 /* Too much?  Must be large enough for register transfer. */
 #define        KGDB_BUFLEN     1024
 
-/*
- * Kernel Entry Vectors.  [OSF/1 PALcode Specific]
- */
-
-#define ALPHA_KENTRY_INT        0
-#define ALPHA_KENTRY_ARITH      1
-#define ALPHA_KENTRY_MM         2
-#define ALPHA_KENTRY_IF         3
-#define ALPHA_KENTRY_UNA        4
-#define ALPHA_KENTRY_SYS        5
-
 #endif /* __KGDB_H__ */
index 710f6ef46e85db9de198d2da58d2c9c1e3c40300..cd923948cb77e9e4aad6be642ab708b5cf36473f 100644 (file)
@@ -29,6 +29,8 @@
  *          Nathan Binkert
  */
 
+#include <sys/signal.h>
+
 #include "arch/alpha/ev5.hh"
 #include "arch/alpha/system.hh"
 #include "arch/alpha/remote_gdb.hh"
@@ -196,7 +198,7 @@ AlphaSystem::setAlphaAccess(Addr access)
 bool
 AlphaSystem::breakpoint()
 {
-    return remoteGDB[0]->trap(ALPHA_KENTRY_INT);
+    return remoteGDB[0]->trap(SIGTRAP);
 }
 
 void