Constify target_pass_signals and target_program_signals
This constifies the final parameter to target_pass_signals and target_program_signals and updates the rest of gdb. Note that I have no way to test the nto-procfs.c change. gdb/ChangeLog 2019-01-14 Tom Tromey <tom@tromey.com> * target-debug.h (target_debug_print_signals): Constify. * nto-procfs.c (nto_procfs_target::pass_signals): Update. * procfs.c (procfs_target::pass_signals): Update. * linux-nat.c (linux_nat_target::pass_signals): Update. * linux-nat.h (class linux_nat_target) <pass_signals>: Update. * target-delegates.c: Rebuild. * remote.c (remote_target::program_signals): Update. (remote_target::pass_signals): Update. * target.c (target_pass_signals): Constify argument. (target_program_signals): Likewise. * target.h (struct target_ops) <pass_signals, program_signals>: Constify argument. (target_pass_signals, target_program_signals): Constify argument.
This commit is contained in:
parent
183561e05e
commit
491adecac4
10 changed files with 45 additions and 27 deletions
|
@ -119,7 +119,7 @@ public:
|
|||
ULONGEST offset, ULONGEST len,
|
||||
ULONGEST *xfered_len) override;
|
||||
|
||||
void pass_signals (int, unsigned char *) override;
|
||||
void pass_signals (int, const unsigned char *) override;
|
||||
|
||||
void files_info () override;
|
||||
|
||||
|
@ -2772,7 +2772,7 @@ procfs_target::resume (ptid_t ptid, int step, enum gdb_signal signo)
|
|||
/* Set up to trace signals in the child process. */
|
||||
|
||||
void
|
||||
procfs_target::pass_signals (int numsigs, unsigned char *pass_signals)
|
||||
procfs_target::pass_signals (int numsigs, const unsigned char *pass_signals)
|
||||
{
|
||||
sigset_t signals;
|
||||
procinfo *pi = find_procinfo_or_die (inferior_ptid.pid (), 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue