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/target-delegates.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/target-delegates.c')
-rw-r--r-- | gdb/target-delegates.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index 2ff800c..43c9790 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -62,8 +62,8 @@ struct dummy_target : public target_ops void follow_exec (struct inferior *arg0, char *arg1) override; int set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3) override; void mourn_inferior () override; - void pass_signals (int arg0, unsigned char * arg1) override; - void program_signals (int arg0, unsigned char * arg1) override; + void pass_signals (int arg0, const unsigned char * arg1) override; + void program_signals (int arg0, const unsigned char * arg1) override; bool thread_alive (ptid_t arg0) override; void update_thread_list () override; const char *pid_to_str (ptid_t arg0) override; @@ -229,8 +229,8 @@ struct debug_target : public target_ops void follow_exec (struct inferior *arg0, char *arg1) override; int set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3) override; void mourn_inferior () override; - void pass_signals (int arg0, unsigned char * arg1) override; - void program_signals (int arg0, unsigned char * arg1) override; + void pass_signals (int arg0, const unsigned char * arg1) override; + void program_signals (int arg0, const unsigned char * arg1) override; bool thread_alive (ptid_t arg0) override; void update_thread_list () override; const char *pid_to_str (ptid_t arg0) override; @@ -1659,18 +1659,18 @@ debug_target::mourn_inferior () } void -target_ops::pass_signals (int arg0, unsigned char * arg1) +target_ops::pass_signals (int arg0, const unsigned char * arg1) { this->beneath ()->pass_signals (arg0, arg1); } void -dummy_target::pass_signals (int arg0, unsigned char * arg1) +dummy_target::pass_signals (int arg0, const unsigned char * arg1) { } void -debug_target::pass_signals (int arg0, unsigned char * arg1) +debug_target::pass_signals (int arg0, const unsigned char * arg1) { fprintf_unfiltered (gdb_stdlog, "-> %s->pass_signals (...)\n", this->beneath ()->shortname ()); this->beneath ()->pass_signals (arg0, arg1); @@ -1682,18 +1682,18 @@ debug_target::pass_signals (int arg0, unsigned char * arg1) } void -target_ops::program_signals (int arg0, unsigned char * arg1) +target_ops::program_signals (int arg0, const unsigned char * arg1) { this->beneath ()->program_signals (arg0, arg1); } void -dummy_target::program_signals (int arg0, unsigned char * arg1) +dummy_target::program_signals (int arg0, const unsigned char * arg1) { } void -debug_target::program_signals (int arg0, unsigned char * arg1) +debug_target::program_signals (int arg0, const unsigned char * arg1) { fprintf_unfiltered (gdb_stdlog, "-> %s->program_signals (...)\n", this->beneath ()->shortname ()); this->beneath ()->program_signals (arg0, arg1); |