From: Tom Tromey Date: Wed, 18 Dec 2013 04:33:56 +0000 (-0700) Subject: Add target_ops argument to to_program_signals X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=daf5e9b64c8e2c130a433c0ddbf73522dc321295;p=binutils-gdb.git Add target_ops argument to to_program_signals 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. * target.c (target_program_signals): Add argument. * remote.c (remote_program_signals): Add 'self' argument. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 12442cdce00..de650836d5c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2014-02-19 Tom Tromey + + * target.h (struct target_ops) : Add argument. + * target.c (target_program_signals): Add argument. + * remote.c (remote_program_signals): Add 'self' argument. + 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. diff --git a/gdb/remote.c b/gdb/remote.c index 7b295ab9463..829c2b4deed 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 38bb16a994d..b5165325236 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 e3230937295..3ae290b04c6 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 *);