aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:33:56 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:45:52 -0700
commitdaf5e9b64c8e2c130a433c0ddbf73522dc321295 (patch)
tree28fd2328e1c06ea16c84ba47716cf350b5572b74
parent94bedb42a7fe3265db2f84d9c7f2a73979953de0 (diff)
downloadgdb-daf5e9b64c8e2c130a433c0ddbf73522dc321295.zip
gdb-daf5e9b64c8e2c130a433c0ddbf73522dc321295.tar.gz
gdb-daf5e9b64c8e2c130a433c0ddbf73522dc321295.tar.bz2
Add target_ops argument to to_program_signals
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_program_signals>: Add argument. * target.c (target_program_signals): Add argument. * remote.c (remote_program_signals): Add 'self' argument.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/remote.c3
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h2
4 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 12442cd..de65083 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2014-02-19 Tom Tromey <tromey@redhat.com>
+ * target.h (struct target_ops) <to_program_signals>: Add argument.
+ * target.c (target_program_signals): Add argument.
+ * remote.c (remote_program_signals): Add 'self' argument.
+
+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.
diff --git a/gdb/remote.c b/gdb/remote.c
index 7b295ab..829c2b4 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -1746,7 +1746,8 @@ remote_pass_signals (struct target_ops *self,
signals it should pass through to the inferior when detaching. */
static void
-remote_program_signals (int numsigs, unsigned char *signals)
+remote_program_signals (struct target_ops *self,
+ int numsigs, unsigned char *signals)
{
if (remote_protocol_packets[PACKET_QProgramSignals].support != PACKET_DISABLE)
{
diff --git a/gdb/target.c b/gdb/target.c
index 38bb16a..b516532 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -2851,7 +2851,7 @@ target_program_signals (int numsigs, unsigned char *program_signals)
fprintf_unfiltered (gdb_stdlog, " })\n");
}
- (*t->to_program_signals) (numsigs, program_signals);
+ (*t->to_program_signals) (t, numsigs, program_signals);
return;
}
}
diff --git a/gdb/target.h b/gdb/target.h
index e323093..3ae290b 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -517,7 +517,7 @@ struct target_ops
/* Documentation of this routine is provided with the
corresponding target_* function. */
- void (*to_program_signals) (int, unsigned char *);
+ void (*to_program_signals) (struct target_ops *, int, unsigned char *);
int (*to_thread_alive) (struct target_ops *, ptid_t ptid);
void (*to_find_new_threads) (struct target_ops *);