/* Core dump and executable file functions above target vector, for GDB.
- Copyright (C) 1986-2019 Free Software Foundation, Inc.
+ Copyright (C) 1986-2020 Free Software Foundation, Inc.
This file is part of GDB.
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-
-/* Standard C includes. */
-#include <fcntl.h>
#include <signal.h>
-#include <sys/stat.h>
-
-/* Local non-gdb includes. */
-#include "bfd.h"
-#include "cli/cli-utils.h"
+#include <fcntl.h>
+#include "inferior.h"
+#include "symtab.h"
#include "command.h"
-#include "completer.h"
-#include "dis-asm.h"
#include "gdbcmd.h"
+#include "bfd.h"
+#include "target.h"
#include "gdbcore.h"
-#include "inferior.h"
+#include "dis-asm.h"
+#include <sys/stat.h>
+#include "completer.h"
#include "observable.h"
-#include "symtab.h"
-#include "target.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
}
}
-/* See common/common-inferior.h. */
+/* See gdbsupport/common-inferior.h. */
-char *
+const char *
get_exec_file (int err)
{
if (exec_filename)
error (_("No executable file specified.\n\
Use the \"file\" or \"exec-file\" command."));
- return NULL;
}
\f