aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-03-16 15:58:41 +0000
committerMark Mitchell <mark@codesourcery.com>2005-03-16 15:58:41 +0000
commit9b265ec209d7dd38bd411cdd3bac4d705a244398 (patch)
tree9688b1dc3fbaaeb3353daade8bddf9ac448bd583 /gdb/cli
parenta5324a3e50c3f59e7d547aec300819c07b026979 (diff)
downloadgdb-9b265ec209d7dd38bd411cdd3bac4d705a244398.zip
gdb-9b265ec209d7dd38bd411cdd3bac4d705a244398.tar.gz
gdb-9b265ec209d7dd38bd411cdd3bac4d705a244398.tar.bz2
* utils.c (internal_vproblem): Guard call to fork with
HAVE_WORKING_FORK. * cli/cli-cmds.c (shell_escape): Guard call to vfork with HAVE_WORKING_VFORK and HAVE_WORKING_FORK. * remote-fileo.c (remote_fileio_mode_to_host): Accomodate lack of S_IRGRP and related macros. (remote_fileio_mode_to_target): Likewise.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-cmds.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 49da474..3c091fe 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -1,6 +1,6 @@
/* GDB CLI commands.
- Copyright 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+ Copyright 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GDB.
@@ -484,7 +484,8 @@ echo_command (char *text, int from_tty)
static void
shell_escape (char *arg, int from_tty)
{
-#ifdef CANT_FORK
+#if defined(CANT_FORK) || \
+ (!defined(HAVE_WORKING_VFORK) && !defined(HAVE_WORKING_FORK))
/* If ARG is NULL, they want an inferior shell, but `system' just
reports if the shell is available when passed a NULL arg. */
int rc = system (arg ? arg : "");