Index: gdb/gdbserver/nto-low.c |
diff --git a/gdb/gdbserver/nto-low.c b/gdb/gdbserver/nto-low.c |
index eabee10b58626fd002594e12f40f0b3b9009f5c4..73618cdd29006c8207eeb9c57d0f5dd0fe722ca5 100644 |
--- a/gdb/gdbserver/nto-low.c |
+++ b/gdb/gdbserver/nto-low.c |
@@ -19,6 +19,7 @@ |
#include "server.h" |
+#include "gdbthread.h" |
#include "nto-low.h" |
#include <limits.h> |
@@ -531,14 +532,14 @@ nto_wait (ptid_t ptid, |
{ |
TRACE ("SSTEP\n"); |
ourstatus->kind = TARGET_WAITKIND_STOPPED; |
- ourstatus->value.sig = TARGET_SIGNAL_TRAP; |
+ ourstatus->value.sig = GDB_SIGNAL_TRAP; |
} |
/* Was it a breakpoint? */ |
else if (status.flags & trace_mask) |
{ |
TRACE ("STOPPED\n"); |
ourstatus->kind = TARGET_WAITKIND_STOPPED; |
- ourstatus->value.sig = TARGET_SIGNAL_TRAP; |
+ ourstatus->value.sig = GDB_SIGNAL_TRAP; |
} |
else if (status.flags & _DEBUG_FLAG_ISTOP) |
{ |
@@ -549,7 +550,7 @@ nto_wait (ptid_t ptid, |
TRACE (" SIGNALLED\n"); |
ourstatus->kind = TARGET_WAITKIND_STOPPED; |
ourstatus->value.sig = |
- target_signal_from_host (status.info.si_signo); |
+ gdb_signal_from_host (status.info.si_signo); |
nto_inferior.exit_signo = ourstatus->value.sig; |
break; |
case _DEBUG_WHY_FAULTED: |
@@ -563,7 +564,7 @@ nto_wait (ptid_t ptid, |
else |
{ |
ourstatus->value.sig = |
- target_signal_from_host (status.info.si_signo); |
+ gdb_signal_from_host (status.info.si_signo); |
nto_inferior.exit_signo = ourstatus->value.sig; |
} |
break; |
@@ -594,7 +595,7 @@ nto_wait (ptid_t ptid, |
TRACE ("REQUESTED\n"); |
/* We are assuming a requested stop is due to a SIGINT. */ |
ourstatus->kind = TARGET_WAITKIND_STOPPED; |
- ourstatus->value.sig = TARGET_SIGNAL_INT; |
+ ourstatus->value.sig = GDB_SIGNAL_INT; |
nto_inferior.exit_signo = 0; |
break; |
} |