aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.server/server-kill.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.server/server-kill.c')
-rw-r--r--gdb/testsuite/gdb.server/server-kill.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.server/server-kill.c b/gdb/testsuite/gdb.server/server-kill.c
index 8a7c74e..8369024 100644
--- a/gdb/testsuite/gdb.server/server-kill.c
+++ b/gdb/testsuite/gdb.server/server-kill.c
@@ -15,10 +15,18 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#include <sys/types.h>
+#include <unistd.h>
+
+int server_pid;
+
int
main (void)
{
- int i = 0;
+ int i;
+
+ server_pid = getppid ();
+ i = 0;
return i;
}