This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[committed][gdb] Fix gdb build on mips64-linux
- From: Tom de Vries <tdevries at suse dot de>
- To: Tom Tromey <tromey at adacore dot com>, gdb-patches at sourceware dot org
- Date: Thu, 15 Aug 2019 08:17:34 +0200
- Subject: [committed][gdb] Fix gdb build on mips64-linux
- References: <20190814144130.10156-1-tromey@adacore.com>
[ 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(+)
diff --git a/gdb/linux-nat-trad.c b/gdb/linux-nat-trad.c
index 04507e8041..c6208dccdb 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. */