aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
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
}
}