aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/target.h
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/target.h
parent9d8f30221b70361930fb82bf81e448b82f36cd58 (diff)
downloadbinutils-04977957ecfc723bc4f57460e8e4eed7e6b69f32.zip
binutils-04977957ecfc723bc4f57460e8e4eed7e6b69f32.tar.gz
binutils-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/target.h')
-rw-r--r--gdbserver/target.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbserver/target.h b/gdbserver/target.h
index 2831a6c..769d828 100644
--- a/gdbserver/target.h
+++ b/gdbserver/target.h
@@ -440,7 +440,7 @@ public:
character string containing the pathname is returned. This
string should be copied into a buffer by the client if the string
will not be immediately used, or if it must persist. */
- virtual char *pid_to_exec_file (int pid);
+ virtual const char *pid_to_exec_file (int pid);
/* Return true if any of the multifs ops is supported. */
virtual bool supports_multifs ();