From 491adecac48c5960fe29582f5046c015ff92c211 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 6 Jan 2019 13:24:11 -0700 Subject: 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 * 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) : 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) : Constify argument. (target_pass_signals, target_program_signals): Constify argument. --- gdb/target.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/target.c') diff --git a/gdb/target.c b/gdb/target.c index f8e92f5..e66584f 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -2112,13 +2112,13 @@ make_scoped_defer_target_commit_resume () } void -target_pass_signals (int numsigs, unsigned char *pass_signals) +target_pass_signals (int numsigs, const unsigned char *pass_signals) { current_top_target ()->pass_signals (numsigs, pass_signals); } void -target_program_signals (int numsigs, unsigned char *program_signals) +target_program_signals (int numsigs, const unsigned char *program_signals) { current_top_target ()->program_signals (numsigs, program_signals); } -- cgit v1.1