diff options
author | Tom de Vries <tdevries@suse.de> | 2019-08-15 08:14:31 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2019-08-15 08:14:31 +0200 |
commit | 2208ee917050bcc901c7faefdee257ffbf8ef2ab (patch) | |
tree | cd7df6870af80ea0b678646288f48f23daef1c32 /gdb/linux-nat-trad.c | |
parent | fc9e754460ccf1c893fc9e67c02c49f58f1bd38e (diff) | |
download | gdb-2208ee917050bcc901c7faefdee257ffbf8ef2ab.zip gdb-2208ee917050bcc901c7faefdee257ffbf8ef2ab.tar.gz gdb-2208ee917050bcc901c7faefdee257ffbf8ef2ab.tar.bz2 |
[gdb] Fix gdb build on mips64-linux
When compiling for mips64-linux, we get:
...
src/gdb/linux-nat-trad.c:139:12: error: ‘gdbarch_num_regs’ was not declared \
in this scope
139 | regnum < gdbarch_num_regs (regcache->arch ());
...
Fix this by including gdbarch.h in linux-nat-trad.c, similar to commit
b1c896b365 "Fix gdb build on macOS".
Build on mips64-linux.
gdb/ChangeLog:
2019-08-15 Tom de Vries <tdevries@suse.de>
* linux-nat-trad.c: Include gdbarch.h.
Diffstat (limited to 'gdb/linux-nat-trad.c')
-rw-r--r-- | gdb/linux-nat-trad.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/linux-nat-trad.c b/gdb/linux-nat-trad.c index 04507e8..c6208dc 100644 --- a/gdb/linux-nat-trad.c +++ b/gdb/linux-nat-trad.c @@ -22,6 +22,7 @@ #include "nat/gdb_ptrace.h" #include "inf-ptrace.h" +#include "gdbarch.h" /* Fetch register REGNUM from the inferior. */ |