This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Don't include gdbarch.h from defs.h
- From: Tom Tromey <tom at tromey dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Wed, 31 Jul 2019 11:48:45 -0600
- Subject: Re: [PATCH] Don't include gdbarch.h from defs.h
- References: <20190614211035.398-1-tom@tromey.com> <mvmy30e71pj.fsf@suse.de>
>>>>> "Andreas" == Andreas Schwab <schwab@suse.de> writes:
Andreas> In file included from ../../gdb/ia64-tdep.h:25:0,
Andreas> from ../../gdb/ia64-linux-tdep.c:21:
Andreas> ../../gdb/ia64-libunwind-tdep.h:74:11: error: ‘readable_regcache’ has not been declared
Andreas> readable_regcache *regcache,
I don't have libunwind-ia64.h, so I couldn't reproduce this locally.
Anyway, please try the appended. Maybe it will work.
thanks,
Tom
diff --git a/gdb/ia64-libunwind-tdep.h b/gdb/ia64-libunwind-tdep.h
index 3ad3d44f367..06a8d5463d7 100644
--- a/gdb/ia64-libunwind-tdep.h
+++ b/gdb/ia64-libunwind-tdep.h
@@ -36,6 +36,8 @@ struct frame_unwind;
running on. */
#include "libunwind-ia64.h"
+#include "gdbarch.h"
+
struct libunwind_descr
{
int (*gdb2uw) (int);