This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Fix build (was: Re: [rfc, arm] Always use correct execution state for single-step breakpoints)
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: "Ulrich Weigand" <uweigand at de dot ibm dot com>, matthew dot gretton-dann at arm dot com, patches at linaro dot org
- Date: Fri, 1 Apr 2011 16:23:56 +0100
- Subject: Fix build (was: Re: [rfc, arm] Always use correct execution state for single-step breakpoints)
- References: <201104011158.p31Bwi6A021997@d06av02.portsmouth.uk.ibm.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.
--
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. */