* corefile.c (reopen_exec_file): Only check for an open exec file.
	Use exec_file_attach.
	* exec.c (exec_open): Make static.
	(exec_file_command): Don't use target_preopen.  Query directly about
	changing the file.
	* gdbcore.h (exec_open): Remove prototype.
gdb/testsuite/
	* gdb.base/completion.exp: Update for change in "file" behavior.
	* gdb.stabs/weird.exp: Likewise.
	* lib/mi-support.exp (mi_gdb_file_cmd): Likewise.
	* lib/gdb.exp (gdb_file_cmd): Likewise.  Kill the program explicitly.
This commit is contained in:
Daniel Jacobowitz 2006-07-24 20:38:08 +00:00
parent b05e64e5fe
commit 4c42eaff63
9 changed files with 49 additions and 35 deletions

View file

@ -123,8 +123,6 @@ extern int write_files;
extern void core_file_command (char *filename, int from_tty);
extern void exec_open (char *filename, int from_tty);
extern void exec_file_attach (char *filename, int from_tty);
extern void exec_file_clear (int from_tty);