diff options
author | Tom Tromey <tromey@redhat.com> | 2014-06-06 13:38:16 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-06-16 10:29:17 -0600 |
commit | 7bc112c1b9bc6e6346e2afff9174fe4adbce909f (patch) | |
tree | 94d0bc92a585689d50a787af8f24782898f43d65 /gdb/target.h | |
parent | fee354eeef0b5bb9b1b799e2ce313fc805b2af1a (diff) | |
download | gdb-7bc112c1b9bc6e6346e2afff9174fe4adbce909f.zip gdb-7bc112c1b9bc6e6346e2afff9174fe4adbce909f.tar.gz gdb-7bc112c1b9bc6e6346e2afff9174fe4adbce909f.tar.bz2 |
constify to_info_proc and friends
This makes a parameter of to_info_proc const and then fixes up some
fallout, including parameters in a couple of gdbarch methods.
I could not test the procfs.c change. I verified it by inspection.
If this causes an error here, it will be trivial to fix.
2014-06-16 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_info_proc>: Make parameter
const.
(target_info_proc): Update.
* target.c (target_info_proc): Make "args" const.
* procfs.c (procfs_info_proc): Update.
* linux-tdep.c (linux_info_proc): Update.
(linux_core_info_proc_mappings): Make "args" const.
(linux_core_info_proc): Update.
* gdbarch.sh (info_proc, core_info_proc): Make "args" const.
* gdbarch.c: Rebuild.
* gdbarch.h: Rebuild.
* corelow.c (core_info_proc): Update.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h index 7f9714e..e563f2f 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -815,7 +815,8 @@ struct target_ops /* Implement the "info proc" command. */ - void (*to_info_proc) (struct target_ops *, char *, enum info_proc_what); + void (*to_info_proc) (struct target_ops *, const char *, + enum info_proc_what); /* Tracepoint-related operations. */ @@ -1232,7 +1233,7 @@ struct address_space *target_thread_address_space (ptid_t); an error was encountered while attempting to handle the request. */ -int target_info_proc (char *, enum info_proc_what); +int target_info_proc (const char *, enum info_proc_what); /* Returns true if this target can debug multiple processes simultaneously. */ |