X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fcorefile.c;h=c4735ada00ae0c2fcbcedd979a2ae1723e7ddfd6;hb=d9fa87f4f6e732f5feb41f2fa7dc6faddb1fb627;hp=4fe8606a22dec09f922058d6ed1a37422e406b30;hpb=268a13a5a3f7c6b9b6ffc5ac2d1b24eb41f3fbdc;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/corefile.c b/gdb/corefile.c index 4fe8606a22..c4735ada00 100644 --- a/gdb/corefile.c +++ b/gdb/corefile.c @@ -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; }