diff mbox

Fix build (was: Re: [rfc, arm] Always use correct execution state for single-step breakpoints)

Message ID 201104011623.57053.pedro@codesourcery.com
State Accepted
Headers show

Commit Message

Pedro Alves April 1, 2011, 3:23 p.m. UTC
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.
diff mbox

Patch

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.  */