constify to_info_proc and friends
authorTom Tromey <tromey@redhat.com>
Fri, 6 Jun 2014 19:38:16 +0000 (13:38 -0600)
committerTom Tromey <tromey@redhat.com>
Mon, 16 Jun 2014 16:29:17 +0000 (10:29 -0600)
commit7bc112c1b9bc6e6346e2afff9174fe4adbce909f
tree94d0bc92a585689d50a787af8f24782898f43d65
parentfee354eeef0b5bb9b1b799e2ce313fc805b2af1a
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.
gdb/ChangeLog
gdb/corelow.c
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh
gdb/linux-tdep.c
gdb/procfs.c
gdb/target.c
gdb/target.h
This page took 0.024347 seconds and 4 git commands to generate.