summaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-low.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r--gdb/gdbserver/linux-low.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 08f1d89466d..b0f0b6096e9 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -714,7 +714,7 @@ retry:
clear_inferiors ();
free (all_processes.head);
all_processes.head = all_processes.tail = NULL;
- return ((unsigned char) WEXITSTATUS (w));
+ return WEXITSTATUS (w);
}
else if (!WIFSTOPPED (w))
{
@@ -723,7 +723,7 @@ retry:
clear_inferiors ();
free (all_processes.head);
all_processes.head = all_processes.tail = NULL;
- return ((unsigned char) WTERMSIG (w));
+ return target_signal_from_host (WTERMSIG (w));
}
}
else
@@ -733,7 +733,7 @@ retry:
}
*status = 'T';
- return ((unsigned char) WSTOPSIG (w));
+ return target_signal_from_host (WSTOPSIG (w));
}
/* Send a signal to an LWP. For LinuxThreads, kill is enough; however, if