mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
[gdb/build, s390x] Fix build after gdbarch_tdep changes
Commit 345bd07cce
("gdb: fix gdbarch_tdep ODR violation") changes a
declaration in s390-tdep.h from
struct gdbarch_tdep { ... };
to
struct s390_gdbarch_tdep : gdbarch_tdep { ... };
and now requires that gdbarch_tdep has been declared before. Which is
usually the case, except when compiling s390-linux-nat.c, where
s390-tdep.h is included before gdbarch.h. Thus the s390x build errors out
with the compiler complaining about a missing class name after the colon.
Fix this in s390-linux-nat.c, by including gdbarch.h before s390-tdep.h.
This commit is contained in:
parent
1aed145ad6
commit
0df670bbe0
@ -29,6 +29,7 @@
|
||||
#include "regset.h"
|
||||
#include "nat/linux-ptrace.h"
|
||||
#include "gdbcmd.h"
|
||||
#include "gdbarch.h"
|
||||
|
||||
#include "s390-tdep.h"
|
||||
#include "s390-linux-tdep.h"
|
||||
@ -43,7 +44,6 @@
|
||||
#include <algorithm>
|
||||
#include "inf-ptrace.h"
|
||||
#include "linux-tdep.h"
|
||||
#include "gdbarch.h"
|
||||
|
||||
/* Per-thread arch-specific data. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user