mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
report user mode gdb exit codes (Paul Brook)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1401 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
43fb823b5f
commit
e90096763d
3 changed files with 19 additions and 0 deletions
16
gdbstub.c
16
gdbstub.c
|
@ -656,6 +656,22 @@ gdb_handlesig (CPUState *env, int sig)
|
|||
}
|
||||
return sig;
|
||||
}
|
||||
|
||||
/* Tell the remote gdb that the process has exited. */
|
||||
void gdb_exit(CPUState *env, int code)
|
||||
{
|
||||
GDBState *s;
|
||||
char buf[4];
|
||||
|
||||
if (gdbserver_fd < 0)
|
||||
return;
|
||||
|
||||
s = &gdbserver_state;
|
||||
|
||||
snprintf(buf, sizeof(buf), "W%02x", code);
|
||||
put_packet(s, buf);
|
||||
}
|
||||
|
||||
#else
|
||||
static int gdb_can_read(void *opaque)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue