From patchwork Fri Apr 1 15:23:56 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 878 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:46:56 -0000 Delivered-To: patches@linaro.org Received: by 10.42.161.68 with SMTP id s4cs223269icx; Fri, 1 Apr 2011 08:24:02 -0700 (PDT) Received: by 10.229.106.134 with SMTP id x6mr450922qco.191.1301671442361; Fri, 01 Apr 2011 08:24:02 -0700 (PDT) Received: from mail.codesourcery.com (mail.codesourcery.com [38.113.113.100]) by mx.google.com with ESMTPS id ca6si2718628vdc.178.2011.04.01.08.24.01 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Apr 2011 08:24:02 -0700 (PDT) Received-SPF: pass (google.com: domain of pedro@codesourcery.com designates 38.113.113.100 as permitted sender) client-ip=38.113.113.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of pedro@codesourcery.com designates 38.113.113.100 as permitted sender) smtp.mail=pedro@codesourcery.com 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 Organization: CodeSourcery To: gdb-patches@sourceware.org Subject: Fix build (was: Re: [rfc, arm] Always use correct execution state for single-step breakpoints) Date: Fri, 1 Apr 2011 16:23:56 +0100 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 Message-Id: <201104011623.57053.pedro@codesourcery.com> 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=all builds: In file included from ../../src/gdb/armnbsd-tdep.c:26: ../../src/gdb/arm-tdep.h:315: error: ‘struct address_space’ declared inside parameter list ../../src/gdb/arm-tdep.h:315: error: its scope is only this definition or declaration, which is probably not what you want I've applied the obvious fix below. Index: src/gdb/arm-tdep.h =================================================================== --- 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; /* Register numbers of various important registers. */