From owner-p4-projects@FreeBSD.ORG Fri Nov 7 03:39:25 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B23F81065687; Fri, 7 Nov 2008 03:39:25 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 765251065680 for ; Fri, 7 Nov 2008 03:39:25 +0000 (UTC) (envelope-from peter-gmail@wemm.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 65A518FC18 for ; Fri, 7 Nov 2008 03:39:25 +0000 (UTC) (envelope-from peter-gmail@wemm.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mA73dPLk074052 for ; Fri, 7 Nov 2008 03:39:25 GMT (envelope-from peter-gmail@wemm.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mA73dP9Z074050 for perforce@freebsd.org; Fri, 7 Nov 2008 03:39:25 GMT (envelope-from peter-gmail@wemm.org) Date: Fri, 7 Nov 2008 03:39:25 GMT Message-Id: <200811070339.mA73dP9Z074050@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter-gmail@wemm.org using -f From: Peter Wemm To: Perforce Change Reviews Cc: Subject: PERFORCE change 152609 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2008 03:39:25 -0000 http://perforce.freebsd.org/chv.cgi?CH=152609 Change 152609 by peter@peter_hammer on 2008/11/07 03:38:43 Shuffle typedefs to be after definitions. gcc3 cares about this. Affected files ... .. //depot/projects/valgrind/coregrind/pub_core_initimg.h#3 edit Differences ... ==== //depot/projects/valgrind/coregrind/pub_core_initimg.h#3 (text+ko) ==== @@ -40,26 +40,6 @@ // the AIX kernel does most of the work for us. //-------------------------------------------------------------------- -/* These are OS-specific and defined below. */ -typedef struct _IICreateImageInfo IICreateImageInfo; -typedef struct _IIFinaliseImageInfo IIFinaliseImageInfo; - -/* This is a two stage process. The first stage, which is most of the - work, creates the initial image in memory to the extent possible. - To do this it takes a bundle of information in an IICreateImageInfo - structure, which is gathered in an OS-specific way at startup. - This returns an IIFinaliseImageInfo structure: */ -extern -IIFinaliseImageInfo VG_(ii_create_image)( IICreateImageInfo ); - -/* Just before starting the client, we may need to make final - adjustments to its initial image. Also we need to set up the VEX - guest state for thread 1 (the root thread) and copy in essential - starting values. This is handed the IIFinaliseImageInfo created by - VG_(ii_create_image). */ -extern -void VG_(ii_finalise_image)( IIFinaliseImageInfo ); - /* Note that both IICreateImageInfo and IIFinaliseImageInfo are OS-specific. We now go on to give instantiations of them @@ -174,6 +154,25 @@ #endif +typedef struct _IICreateImageInfo IICreateImageInfo; +typedef struct _IIFinaliseImageInfo IIFinaliseImageInfo; + +/* This is a two stage process. The first stage, which is most of the + work, creates the initial image in memory to the extent possible. + To do this it takes a bundle of information in an IICreateImageInfo + structure, which is gathered in an OS-specific way at startup. + This returns an IIFinaliseImageInfo structure: */ +extern +IIFinaliseImageInfo VG_(ii_create_image)( IICreateImageInfo ); + +/* Just before starting the client, we may need to make final + adjustments to its initial image. Also we need to set up the VEX + guest state for thread 1 (the root thread) and copy in essential + starting values. This is handed the IIFinaliseImageInfo created by + VG_(ii_create_image). */ +extern +void VG_(ii_finalise_image)( IIFinaliseImageInfo ); + #endif // __PUB_CORE_INITIMG_H /*--------------------------------------------------------------------*/