public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb] Fix gdb build on mips64-linux
@ 2019-08-15 6:14 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2019-08-15 6:14 UTC (permalink / raw)
To: gdb-cvs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 1517 bytes --]
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2208ee917050bcc901c7faefdee257ffbf8ef2ab
commit 2208ee917050bcc901c7faefdee257ffbf8ef2ab
Author: Tom de Vries <tdevries@suse.de>
Date: Thu Aug 15 08:14:31 2019 +0200
[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.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/linux-nat-trad.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6f7474f..b6953b0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2019-08-15 Tom de Vries <tdevries@suse.de>
+
+ * linux-nat-trad.c: Include gdbarch.h.
+
2019-08-14 Alan Hayward <alan.hayward@arm.com>
* aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-08-15 6:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-15 6:14 [binutils-gdb] [gdb] Fix gdb build on mips64-linux Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).