aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
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/utils.c
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/utils.c')
-rw-r--r--gdb/utils.c2
1 files changed, 2 insertions, 0 deletions
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
}
}