mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
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.
This commit is contained in:
@ -100,7 +100,7 @@ class darwin_nat_target : public inf_child_target
|
||||
|
||||
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;
|
||||
|
||||
enum target_xfer_status xfer_partial (enum target_object object,
|
||||
const char *annex,
|
||||
|
Reference in New Issue
Block a user