aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/netbsd-low.cc
diff options
context:
space:
mode:
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2021-04-12 14:14:06 +0200
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2021-04-12 16:36:25 +0200
commit04977957ecfc723bc4f57460e8e4eed7e6b69f32 (patch)
treef81ccf59234a4a9aa2f325d6b6d31995229a359a /gdbserver/netbsd-low.cc
parent9d8f30221b70361930fb82bf81e448b82f36cd58 (diff)
downloadgdb-04977957ecfc723bc4f57460e8e4eed7e6b69f32.zip
gdb-04977957ecfc723bc4f57460e8e4eed7e6b69f32.tar.gz
gdb-04977957ecfc723bc4f57460e8e4eed7e6b69f32.tar.bz2
gdbserver: constify the 'pid_to_exec_file' target op
gdbserver/ChangeLog: 2021-04-12 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> * target.h (class process_stratum_target) <pid_to_exec_file>: Constify the return type. Update the definition/references below. * target.cc (process_stratum_target::pid_to_exec_file) * linux-low.h (class linux_process_target) <pid_to_exec_file> * linux-low.cc (linux_process_target::pid_to_exec_file) * netbsd-low.h (class netbsd_process_target) <pid_to_exec_file> * netbsd-low.cc (netbsd_process_target::pid_to_exec_file) * server.cc (handle_qxfer_exec_file)
Diffstat (limited to 'gdbserver/netbsd-low.cc')
-rw-r--r--gdbserver/netbsd-low.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbserver/netbsd-low.cc b/gdbserver/netbsd-low.cc
index 38ded94..84e34d0 100644
--- a/gdbserver/netbsd-low.cc
+++ b/gdbserver/netbsd-low.cc
@@ -1193,10 +1193,10 @@ netbsd_process_target::supports_qxfer_libraries_svr4 ()
/* Return the name of a file that can be opened to get the symbols for
the child process identified by PID. */
-char *
+const char *
netbsd_process_target::pid_to_exec_file (pid_t pid)
{
- return const_cast<char *> (netbsd_nat::pid_to_exec_file (pid));
+ return netbsd_nat::pid_to_exec_file (pid);
}
/* Implementation of the target_ops method "supports_pid_to_exec_file". */