aboutsummaryrefslogtreecommitdiff
path: root/gdb/core.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-04-05 09:02:10 +0000
committerJohn Gilmore <gnu@cygnus>1991-04-05 09:02:10 +0000
commit3f2e006b77f217bbf4a4cb9299cf248058a44ed3 (patch)
tree60b9a78e945e02698d856ea5b82982fe549b26f2 /gdb/core.c
parent07d021a6ae8d3ed9da9f55c8623739e7a716308e (diff)
downloadgdb-3f2e006b77f217bbf4a4cb9299cf248058a44ed3.zip
gdb-3f2e006b77f217bbf4a4cb9299cf248058a44ed3.tar.gz
gdb-3f2e006b77f217bbf4a4cb9299cf248058a44ed3.tar.bz2
*** empty log message ***
Diffstat (limited to 'gdb/core.c')
-rw-r--r--gdb/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/core.c b/gdb/core.c
index 2936e46..119f716 100644
--- a/gdb/core.c
+++ b/gdb/core.c
@@ -155,10 +155,9 @@ core_detach (args, from_tty)
char *args;
int from_tty;
{
- dont_repeat ();
if (args)
error ("Too many arguments");
- pop_target ();
+ unpush_target (&core_ops);
if (from_tty)
printf ("No core file now.\n");
}
@@ -170,6 +169,7 @@ core_file_command (filename, from_tty)
char *filename;
int from_tty;
{
+ dont_repeat (); /* Either way, seems bogus. */
if (!filename)
core_detach (filename, from_tty);
else