]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Constify target_pid_to_exec_file
authorTom Tromey <tromey@adacore.com>
Tue, 26 Apr 2022 20:08:03 +0000 (14:08 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 13 May 2022 14:21:16 +0000 (08:21 -0600)
commit0e90c441629bcf1f53ba484f7d855ed8eb68f138
tree32543d4e42dfa1873b0fca3e3a81c0e33cd67702
parentf1025b233f6dad43981f5ad35c81481f8d3658bf
Constify target_pid_to_exec_file

This changes target_pid_to_exec_file and target_ops::pid_to_exec_file
to return a "const char *".  I couldn't build many of these targets,
but did examine the code by hand -- also, as this only affects the
return type, it's normally pretty safe.  This brings gdb and gdbserver
a bit closer, and allows for the removal of a const_cast as well.
20 files changed:
gdb/darwin-nat.c
gdb/darwin-nat.h
gdb/exec.c
gdb/fbsd-nat.c
gdb/fbsd-nat.h
gdb/inf-child.c
gdb/inf-child.h
gdb/linux-nat.c
gdb/linux-nat.h
gdb/nat/linux-procfs.c
gdb/nat/linux-procfs.h
gdb/netbsd-nat.c
gdb/netbsd-nat.h
gdb/nto-procfs.c
gdb/procfs.c
gdb/remote.c
gdb/target-delegates.c
gdb/target.c
gdb/target.h
gdb/windows-nat.c