aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-01-04 15:39:00 +0000
committerSteve Chamberlain <sac@cygnus>1993-01-04 15:39:00 +0000
commit5fe932391d34c4369afa1ff42a386a708149be74 (patch)
tree46d62a3a098f40236b447373665c88f6286508d1 /gdb/command.c
parent27de82c60361e1017504ded324b24ec979ae97b6 (diff)
downloadfsf-binutils-gdb-5fe932391d34c4369afa1ff42a386a708149be74.zip
fsf-binutils-gdb-5fe932391d34c4369afa1ff42a386a708149be74.tar.gz
fsf-binutils-gdb-5fe932391d34c4369afa1ff42a386a708149be74.tar.bz2
* command.c (shell_escape, make_command, _initialze_command):
don't create or use fork if CANT_FORK is defined. * serial.h, ser-go32.c: now compiles, but "the obvious problems of code written for the IBM PC" remain. * xm-go32.h: define CANT_FORK
Diffstat (limited to 'gdb/command.c')
-rw-r--r--gdb/command.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/command.c b/gdb/command.c
index 412ff21..122c8ca 100644
--- a/gdb/command.c
+++ b/gdb/command.c
@@ -1136,6 +1136,7 @@ cmd_show_list (list, from_tty, prefix)
}
}
+#ifndef CANT_FORK
/* ARGSUSED */
static void
shell_escape (arg, from_tty)
@@ -1171,7 +1172,9 @@ shell_escape (arg, from_tty)
else
error ("Fork failed");
}
+#endif
+#ifndef CANT_FORK
static void
make_command (arg, from_tty)
char *arg;
@@ -1190,6 +1193,7 @@ make_command (arg, from_tty)
shell_escape (p, from_tty);
}
+#endif
static void
show_user_1 (c, stream)
@@ -1239,13 +1243,15 @@ show_user (args, from_tty)
void
_initialize_command ()
{
+#ifndef CANT_FORK
add_com ("shell", class_support, shell_escape,
"Execute the rest of the line as a shell command. \n\
With no arguments, run an inferior shell.");
-
+#endif
+#ifndef CANT_FORK
add_com ("make", class_support, make_command,
"Run the ``make'' program using the rest of the line as arguments.");
-
+#endif
add_cmd ("user", no_class, show_user,
"Show definitions of user defined commands.\n\
Argument is the name of the user defined command.\n\