forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user