* gdb.texinfo (Monitor commands for gdbserver): New subsection.
* remote-utils.c (monitor_output): New function. * server.c (debug_threads): Define here. (monitor_show_help): New function. (handle_query): Handle qRcmd. (main): Do not handle 'd' packet. * server.h (debug_threads, remote_debug, monitor_output): Declare. * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions of debug_threads. * gdb.server/server-mon.exp: New test.
This commit is contained in:
parent
2711e4564f
commit
c74d0ad827
11 changed files with 176 additions and 7 deletions
|
@ -1074,3 +1074,15 @@ look_up_one_symbol (const char *name, CORE_ADDR *addrp)
|
|||
|
||||
return 1;
|
||||
}
|
||||
|
||||
void
|
||||
monitor_output (char *msg)
|
||||
{
|
||||
char *buf = malloc (strlen (msg) * 2 + 2);
|
||||
|
||||
buf[0] = 'O';
|
||||
hexify (buf + 1, msg, 0);
|
||||
|
||||
putpkt (buf);
|
||||
free (buf);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue