From 9b265ec209d7dd38bd411cdd3bac4d705a244398 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Wed, 16 Mar 2005 15:58:41 +0000 Subject: * 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. --- gdb/utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/utils.c') diff --git a/gdb/utils.c b/gdb/utils.c index 690158b..7ee2061 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -789,8 +789,10 @@ further debugging may prove unreliable.", file, line, problem->name, msg); { if (dump_core_p) { +#ifdef HAVE_WORKING_FORK if (fork () == 0) abort (); /* NOTE: GDB has only three calls to abort(). */ +#endif } } -- cgit v1.1