Constify get_exec_file
[deliverable/binutils-gdb.git] / gdb / procfs.c
index 57d4b8f0bfbbdeb3ee3f8593f8e83114011f8a70..ccc5e26064bf3620947219d32e166381e2c15667 100644 (file)
@@ -1870,7 +1870,6 @@ procfs_debug_inferior (procinfo *pi)
 void
 procfs_target::attach (const char *args, int from_tty)
 {
-  char *exec_file;
   int   pid;
 
   pid = parse_pid_to_attach (args);
@@ -1880,7 +1879,7 @@ procfs_target::attach (const char *args, int from_tty)
 
   if (from_tty)
     {
-      exec_file = get_exec_file (0);
+      const char *exec_file = get_exec_file (0);
 
       if (exec_file)
        printf_filtered (_("Attaching to program `%s', %s\n"),
This page took 0.023918 seconds and 4 git commands to generate.