diff options
author | Tom Tromey <tom@tromey.com> | 2019-01-06 13:24:11 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-14 17:32:24 -0700 |
commit | 491adecac48c5960fe29582f5046c015ff92c211 (patch) | |
tree | 01cf83e897fe97a8eba013884b76c6b91f3f1159 /gdb/remote.c | |
parent | 183561e05eb4d504f65557756e987b584b72350b (diff) | |
download | gdb-491adecac48c5960fe29582f5046c015ff92c211.zip gdb-491adecac48c5960fe29582f5046c015ff92c211.tar.gz gdb-491adecac48c5960fe29582f5046c015ff92c211.tar.bz2 |
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.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 324ed46..c40f926 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -474,12 +474,12 @@ public: void mourn_inferior () override; - void pass_signals (int, unsigned char *) override; + void pass_signals (int, const unsigned char *) override; int set_syscall_catchpoint (int, bool, int, gdb::array_view<const int>) override; - void program_signals (int, unsigned char *) override; + void program_signals (int, const unsigned char *) override; bool thread_alive (ptid_t ptid) override; @@ -2555,7 +2555,7 @@ record_currthread (struct remote_state *rs, ptid_t currthread) it can simply pass through to the inferior without reporting. */ void -remote_target::pass_signals (int numsigs, unsigned char *pass_signals) +remote_target::pass_signals (int numsigs, const unsigned char *pass_signals) { if (packet_support (PACKET_QPassSignals) != PACKET_DISABLE) { @@ -2681,7 +2681,7 @@ remote_target::set_syscall_catchpoint (int pid, bool needed, int any_count, signals it should pass through to the inferior when detaching. */ void -remote_target::program_signals (int numsigs, unsigned char *signals) +remote_target::program_signals (int numsigs, const unsigned char *signals) { if (packet_support (PACKET_QProgramSignals) != PACKET_DISABLE) { |