* 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:
Daniel Jacobowitz
2007-02-26 20:10:18 +00:00
parent 2711e4564f
commit c74d0ad827
11 changed files with 176 additions and 7 deletions

View File

@@ -128,12 +128,14 @@ extern unsigned long step_thread;
extern unsigned long thread_from_wait;
extern unsigned long old_thread_from_wait;
extern int server_waiting;
extern int debug_threads;
extern int pass_signals[];
extern jmp_buf toplevel;
/* From remote-utils.c */
extern int remote_debug;
extern int all_symbols_looked_up;
int putpkt (char *buf);
@@ -170,6 +172,8 @@ int remote_escape_output (const gdb_byte *buffer, int len,
int look_up_one_symbol (const char *name, CORE_ADDR *addrp);
void monitor_output (char *msg);
/* Functions from ``signals.c''. */
enum target_signal target_signal_from_host (int hostsig);
int target_signal_to_host_p (enum target_signal oursig);