Don't include gdbarch.h from defs.h

Message ID 87ftmmhz7m.fsf@tromey.com
State New, archived
Headers

Commit Message

Tom Tromey July 31, 2019, 5:48 p.m. UTC
  >>>>> "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
  

Comments

Andreas Schwab Aug. 1, 2019, 12:21 p.m. UTC | #1
On Jul 31 2019, Tom Tromey <tom@tromey.com> wrote:

>>>>>> "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.

This fixes the errors.

Andreas.
  

Patch

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);