diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-08-29 18:50:25 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-08-29 18:50:25 +0000 |
commit | a9fa9f7daf3fdb5a1cc0149156ac8d497893cf0f (patch) | |
tree | a7aca92dbeec50d8e44abc5bc83432371681279b /gdb/gdbserver/target.h | |
parent | e551c2572e97cf7ab0a431f5a1f25207d9a4d179 (diff) | |
download | gdb-a9fa9f7daf3fdb5a1cc0149156ac8d497893cf0f.zip gdb-a9fa9f7daf3fdb5a1cc0149156ac8d497893cf0f.tar.gz gdb-a9fa9f7daf3fdb5a1cc0149156ac8d497893cf0f.tar.bz2 |
* linux-low.c (linux_create_inferior): Call setpgid. Return
the new PID.
(unstopped_p, linux_signal_pid): Remove.
(linux_target_ops): Remove linux_signal_pid.
* remote-utils.c (putpkt, input_interrupt): Use signal_pid
global instead of target method.
* target.h (struct target_ops): Remove signal_pid. Update comment
for create_inferior.
* server.c (signal_pid): New variable.
(create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
gdbserver. Set the child to be the foreground process group.
(attach_inferior): Set signal_pid.
Diffstat (limited to 'gdb/gdbserver/target.h')
-rw-r--r-- | gdb/gdbserver/target.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h index c6aeee6..e554c0a 100644 --- a/gdb/gdbserver/target.h +++ b/gdb/gdbserver/target.h @@ -32,7 +32,7 @@ struct target_ops ARGS is a standard NULL-terminated array of arguments, to be passed to the inferior as ``argv''. - Returns 0 on success, -1 on failure. Registers the new + Returns the new PID on success, -1 on failure. Registers the new process with the process list. */ int (*create_inferior) (char *program, char **args); @@ -104,11 +104,6 @@ struct target_ops symbols. */ void (*look_up_symbols) (void); - - /* Return the PID we should send a signal to. Used for asynchronous - interrupts (user hitting Control-C). */ - - int (*signal_pid) (void); }; extern struct target_ops *the_target; |