Force remote gdb code to use signal numbers and not ISA specific trap numbers.

--HG--
extra : convert_revision : 4f45a4b48e3993ac6991db2afffbce2e666eab6c
This commit is contained in:
Gabe Black 2006-11-07 23:40:54 -05:00
parent 90408b7d02
commit 1a5d5d0b56
2 changed files with 3 additions and 12 deletions

View file

@ -160,15 +160,4 @@
/* 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__ */

View 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