aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/target.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/target.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/target.h')
-rw-r--r--gdb/gdbserver/target.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h
index 0cf5687..9f96e04 100644
--- a/gdb/gdbserver/target.h
+++ b/gdb/gdbserver/target.h
@@ -409,8 +409,7 @@ void set_target_ops (struct target_ops *);
#define myattach(pid) \
(*the_target->attach) (pid)
-#define kill_inferior(pid) \
- (*the_target->kill) (pid)
+int kill_inferior (int);
#define detach_inferior(pid) \
(*the_target->detach) (pid)