aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/server.h
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-07-27 08:09:14 +0000
committerYao Qi <yao@codesourcery.com>2012-07-27 08:09:14 +0000
commit7255706c3e52f744398e01240567abd99c8ccf52 (patch)
tree464b514adcef97fcb15f131427684cace16b1449 /gdb/gdbserver/server.h
parentc71bb85d64f4ddcc7ae1c991e44ff3b48d2a5dc9 (diff)
downloadgdb-7255706c3e52f744398e01240567abd99c8ccf52.zip
gdb-7255706c3e52f744398e01240567abd99c8ccf52.tar.gz
gdb-7255706c3e52f744398e01240567abd99c8ccf52.tar.bz2
gdb/gdbserver/
PR remote/14161. * server.h: Declare gdb_agent_about_to_close. * target.c (kill_inferior): Include "agent.h". New. Send command 'kill'. * target.h (kill_inferior): Removed macro. * tracepoint.c (gdb_agent_about_to_close): New. (gdb_agent_helper_thread): Handle command 'close'. Wait endlessly until the inferior stops. Install gdb_agent_remove_socket to atexit hook. (agent_socket_name): New static variable. (gdb_agent_socket_init): Replace local variable 'name' with 'agent_socket_name'. (gdb_agent_remove_socket): New. gdb/doc/ * gdb.texinfo (IPA Protocol Commands): Document new command 'close'. gdb/testsuite/ KFAIL for PR remote/14161. * gdb.trace/strace.exp (strace_remove_socket): kfail for native. Cleanup socket files. (strace_info_marker): Detach inferior.
Diffstat (limited to 'gdb/gdbserver/server.h')
-rw-r--r--gdb/gdbserver/server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h
index 02dfa29..752bc3b 100644
--- a/gdb/gdbserver/server.h
+++ b/gdb/gdbserver/server.h
@@ -467,6 +467,7 @@ void stop_tracing (void);
int claim_trampoline_space (ULONGEST used, CORE_ADDR *trampoline);
int have_fast_tracepoint_trampoline_buffer (char *msgbuf);
+void gdb_agent_about_to_close (int pid);
#endif
struct traceframe;