From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29940 invoked by alias); 1 Apr 2011 15:24:07 -0000 Received: (qmail 29931 invoked by uid 22791); 1 Apr 2011 15:24:06 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 01 Apr 2011 15:24:00 +0000 Received: (qmail 20963 invoked from network); 1 Apr 2011 15:23:59 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 1 Apr 2011 15:23:59 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Fix build (was: Re: [rfc, arm] Always use correct execution state for single-step breakpoints) Date: Fri, 01 Apr 2011 15:24:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.35-28-generic; KDE/4.6.1; x86_64; ; ) Cc: "Ulrich Weigand" , matthew.gretton-dann@arm.com, patches@linaro.org References: <201104011158.p31Bwi6A021997@d06av02.portsmouth.uk.ibm.com> In-Reply-To: <201104011158.p31Bwi6A021997@d06av02.portsmouth.uk.ibm.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201104011623.57053.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-04/txt/msg00007.txt.bz2 On Friday 01 April 2011 12:58:44, Ulrich Weigand wrote: > > gdb/ > > * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype. This broke arm-bsd or --enable-targets=3Dall builds: In file included from ../../src/gdb/armnbsd-tdep.c:26: ../../src/gdb/arm-tdep.h:315: error: =E2=80=98struct address_space=E2=80=99= declared inside parameter list ../../src/gdb/arm-tdep.h:315: error: its scope is only this definition or d= eclaration, which is probably not what you want I've applied the obvious fix below. --=20 Pedro Alves 2011-04-01 Pedro Alves gdb/ * arm-tdep.h (struct address_space): Add forward declaration. --- gdb/arm-tdep.h | 1 + 1 file changed, 1 insertion(+) Index: src/gdb/arm-tdep.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- src.orig/gdb/arm-tdep.h 2011-04-01 15:08:25.000000000 +0100 +++ src/gdb/arm-tdep.h 2011-04-01 15:29:30.899770002 +0100 @@ -23,6 +23,7 @@ /* Forward declarations. */ struct gdbarch; struct regset; +struct address_space; =20 /* Register numbers of various important registers. */ =20