From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20282 invoked by alias); 8 Nov 2004 15:20:18 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 20252 invoked from network); 8 Nov 2004 15:20:14 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sourceware.org with SMTP; 8 Nov 2004 15:20:14 -0000 Received: from hermes.suse.de (hermes-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id 2641E1019C24 for ; Mon, 8 Nov 2004 16:02:40 +0100 (CET) To: gdb-patches@sources.redhat.com Subject: [PATCH] Fix PTRACE_EVENT_VFORKDONE -> PTRACE_EVENT_VFORK_DONE From: Andreas Schwab X-Yow: .. or were you driving the PONTIAC that HONKED at me in MIAMI last Tuesday? Date: Mon, 08 Nov 2004 15:20:00 -0000 Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-11/txt/msg00127.txt.bz2 The kernel header spells it differently. Andreas. 2004-11-08 Andreas Schwab * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from PTRACE_EVENT_VFORKDONE. (child_follow_fork): Adjust. --- gdb/linux-nat.c 11 Oct 2004 10:39:50 +0200 1.15 +++ gdb/linux-nat.c 08 Nov 2004 15:33:15 +0100 @@ -69,7 +69,7 @@ #define PTRACE_EVENT_VFORK 2 #define PTRACE_EVENT_CLONE 3 #define PTRACE_EVENT_EXEC 4 -#define PTRACE_EVENT_VFORKDONE 5 +#define PTRACE_EVENT_VFORK_DONE 5 #define PTRACE_EVENT_EXIT 6 #endif /* PTRACE_EVENT_FORK */ @@ -314,7 +314,7 @@ child_follow_fork (int follow_child) ptrace (PTRACE_CONT, parent_pid, 0, 0); waitpid (parent_pid, &status, __WALL); - if ((status >> 16) != PTRACE_EVENT_VFORKDONE) + if ((status >> 16) != PTRACE_EVENT_VFORK_DONE) warning ("Unexpected waitpid result %06x when waiting for " "vfork-done", status); } -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."