Constify get_exec_file
[deliverable/binutils-gdb.git] / gdb / corefile.c
index 4fe8606a22dec09f922058d6ed1a37422e406b30..c4735ada00ae0c2fcbcedd979a2ae1723e7ddfd6 100644 (file)
@@ -32,6 +32,7 @@
 #include "completer.h"
 #include "observable.h"
 #include "cli/cli-utils.h"
+#include "gdbarch.h"
 
 /* You can have any number of hooks for `exec_file_command' command to
    call.  If there's only one hook, it is set in exec_file_display
@@ -140,7 +141,7 @@ validate_files (void)
 
 /* See gdbsupport/common-inferior.h.  */
 
-char *
+const char *
 get_exec_file (int err)
 {
   if (exec_filename)
@@ -150,7 +151,6 @@ get_exec_file (int err)
 
   error (_("No executable file specified.\n\
 Use the \"file\" or \"exec-file\" command."));
-  return NULL;
 }
 \f
 
This page took 0.024441 seconds and 4 git commands to generate.