[committed] Fix gdb build on mips64-linux
Commit Message
[ was: [FYI] Fix gdb build on macOS ]
On 14-08-19 16:41, Tom Tromey wrote:
> Internal testing showed that the macOS port did not build. The
> breakage was caused by the patch to remove the gdbarch.h include from
> defs.h. This patch fixes the problem.
>
> gdb/ChangeLog
> 2019-08-14 Tom Tromey <tromey@adacore.com>
>
> * darwin-nat.c: Include gdbarch.h.
> * darwin-nat-info.c: Include gdbarch.h.
Committed similar for linux-nat-trad.c.
Thanks,
- Tom
[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.
---
gdb/linux-nat-trad.c | 1 +
1 file changed, 1 insertion(+)
@@ -22,6 +22,7 @@
#include "nat/gdb_ptrace.h"
#include "inf-ptrace.h"
+#include "gdbarch.h"
/* Fetch register REGNUM from the inferior. */