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

Pedro Alves
2011-04-01T15:24:07Z

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.

--
Pedro Alves

2011-04-01 Pedro Alves <pedro@codesourcery.com>

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