diff options
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index f6ca134..d290505 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -127,7 +127,7 @@ public: std::string pid_to_str (ptid_t) override; - char *pid_to_exec_file (int pid) override; + const char *pid_to_exec_file (int pid) override; thread_control_capabilities get_thread_control_capabilities () override { return tc_schedlock; } @@ -2927,7 +2927,7 @@ procfs_target::pid_to_str (ptid_t ptid) /* Accepts an integer PID; Returns a string representing a file that can be opened to get the symbols for the child process. */ -char * +const char * procfs_target::pid_to_exec_file (int pid) { static char buf[PATH_MAX]; |