diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:33:44 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:45:51 -0700 |
commit | 94bedb42a7fe3265db2f84d9c7f2a73979953de0 (patch) | |
tree | 7c3768377e6d7a917fa71e42f734b6371f539f2c /gdb/linux-nat.c | |
parent | da82bd6b65af8f3cec02621435331983b27d93a0 (diff) | |
download | fsf-binutils-gdb-94bedb42a7fe3265db2f84d9c7f2a73979953de0.zip fsf-binutils-gdb-94bedb42a7fe3265db2f84d9c7f2a73979953de0.tar.gz fsf-binutils-gdb-94bedb42a7fe3265db2f84d9c7f2a73979953de0.tar.bz2 |
Add target_ops argument to to_pass_signals
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_pass_signals>: Add argument.
* target.c (target_pass_signals): Add argument.
* remote.c (remote_pass_signals): Add 'self' argument.
(remote_start_remote): Update.
* procfs.c (procfs_pass_signals): Add 'self' argument.
* nto-procfs.c (procfs_pass_signals): Add 'self' argument.
* linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
(linux_nat_create_inferior, linux_nat_attach): Update.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index aaf55bf..42a95fa 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -824,7 +824,8 @@ static sigset_t pass_mask; /* Update signals to pass to the inferior. */ static void -linux_nat_pass_signals (int numsigs, unsigned char *pass_signals) +linux_nat_pass_signals (struct target_ops *self, + int numsigs, unsigned char *pass_signals) { int signo; @@ -1302,7 +1303,7 @@ linux_nat_create_inferior (struct target_ops *ops, #endif /* HAVE_PERSONALITY */ /* Make sure we report all signals during startup. */ - linux_nat_pass_signals (0, NULL); + linux_nat_pass_signals (ops, 0, NULL); linux_ops->to_create_inferior (ops, exec_file, allargs, env, from_tty); @@ -1327,7 +1328,7 @@ linux_nat_attach (struct target_ops *ops, char *args, int from_tty) volatile struct gdb_exception ex; /* Make sure we report all signals during attach. */ - linux_nat_pass_signals (0, NULL); + linux_nat_pass_signals (ops, 0, NULL); TRY_CATCH (ex, RETURN_MASK_ERROR) { |