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.
This commit is contained in:
parent
94bedb42a7
commit
daf5e9b64c
4 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 *);
|
||||
|
|
Loading…
Reference in a new issue