/* This testcase is part of GDB, the GNU debugger.
- Copyright 1997-2014 Free Software Foundation, Inc.
+ Copyright 1997-2020 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
{
int pid;
- pid = vfork ();
+ /* A statement before vfork to make sure a breakpoint on main isn't
+ set on vfork below. */
+ pid = 1;
+ pid = vfork (); /* VFORK */
if (pid == 0)
{
printf ("I'm the child!\n");