mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00: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:
@@ -314,7 +314,7 @@ validate_exec_file (int from_tty)
|
||||
void
|
||||
exec_file_locate_attach (int pid, int defer_bp_reset, int from_tty)
|
||||
{
|
||||
char *exec_file_target;
|
||||
const char *exec_file_target;
|
||||
symfile_add_flags add_flags = 0;
|
||||
|
||||
/* Do nothing if we already have an executable filename. */
|
||||
|
||||
Reference in New Issue
Block a user