diff options
author | Daniel Jacobowitz <dan@debian.org> | 2003-06-17 20:28:14 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2003-06-17 20:28:14 +0000 |
commit | 27ab33357a061db794254afee4cfabbac5d5668a (patch) | |
tree | ee8b6a8050c1f5fa8a9ab8a127ff031071995797 /gdb/target.h | |
parent | d00917dd91c888c954c92e5c0ad6550b6795f485 (diff) | |
download | gdb-27ab33357a061db794254afee4cfabbac5d5668a.tar.gz |
gdb/
* NEWS: Mention gdbserver detach change and "disconnect" command.
* infcmd.c (disconnect_command): New function.
(_initialize_infcmd): Add ``disconnect'' command.
* remote.c (remote_async_detach): Delete.
(remote_detach): Merge remote_async_detach.
(remote_disconnect): New.
(init_remote_ops): Set to_disconnect.
(init_remote_cisco_ops): Likewise.
(init_remote_async_ops): Likewise. Use remote_detach.
* target.c (cleanup_target): Default to_disconnect.
(update_current_target): Inherit to_disconnect.
(target_disconnect, debug_to_disconnect): New functions.
(setup_target_debug): Set to_disconnect.
* target.h (struct target_ops): Add to_disconnect.
(target_disconnect): Add prototype.
gdbserver/
* linux-low.c: Move comment to linux_thread_alive where it belonged.
(linux_detach_one_process, linux_detach): New functions.
(linux_target_ops): Add linux_detach.
* server.c (main): Handle 'D' packet.
* target.h (struct target_ops): Add "detach" member.
(detach_inferior): Define.
mi/
* mi-cmds.c (mi_cmds): Add "-target-disconnect".
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index c2d87937dad..a3e10e8ddd0 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -198,6 +198,7 @@ struct target_ops void (*to_attach) (char *, int); void (*to_post_attach) (int); void (*to_detach) (char *, int); + void (*to_disconnect) (char *, int); void (*to_resume) (ptid_t, int, enum target_signal); ptid_t (*to_wait) (ptid_t, struct target_waitstatus *); void (*to_post_wait) (ptid_t, int); @@ -414,6 +415,11 @@ extern struct target_stack_item *target_stack; extern void target_detach (char *, int); +/* Disconnect from the current target without resuming it (leaving it + waiting for a debugger). */ + +extern void target_disconnect (char *, int); + /* Resume execution of the target process PTID. STEP says whether to single-step or to run free; SIGGNAL is the signal to be given to the target, or TARGET_SIGNAL_0 for no signal. The caller may not |