public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb: include gdbarch.h in hppa-linux-nat.c
@ 2019-09-28 18:48 Simon Marchi
0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2019-09-28 18:48 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: 1571 bytes --]
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ad75efa628656716982f2674008952bfd2c268af
commit ad75efa628656716982f2674008952bfd2c268af
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date: Sat Sep 28 14:48:22 2019 -0400
gdb: include gdbarch.h in hppa-linux-nat.c
hppa-linux-nat.c fails to build due to the gdbarch stuff not being
declared, for example:
hppa-linux-nat.c: In function âvoid fetch_register(regcache*, int)â:
hppa-linux-nat.c:230:7: error: âgdbarch_cannot_fetch_registerâ was not declared in this scope
if (gdbarch_cannot_fetch_register (gdbarch, regno))
Include gdbarch.h to fix it.
gdb/ChangeLog:
PR gdb/25045
* hppa-linux-nat.c: Include gdbarch.h.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/hppa-linux-nat.c | 1 +
2 files changed, 6 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f323cf6..99e4373 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
+
+ PR gdb/25045
+ * hppa-linux-nat.c: Include gdbarch.h.
+
2019-09-26 Christian Biesinger <cbiesinger@google.com>
* blockframe.c (find_pc_partial_function): Change return type to bool.
diff --git a/gdb/hppa-linux-nat.c b/gdb/hppa-linux-nat.c
index aea21d1..09fa4c3 100644
--- a/gdb/hppa-linux-nat.c
+++ b/gdb/hppa-linux-nat.c
@@ -24,6 +24,7 @@
#include "target.h"
#include "linux-nat.h"
#include "inf-ptrace.h"
+#include "gdbarch.h"
#include <sys/procfs.h>
#include "nat/gdb_ptrace.h"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-09-28 18:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-28 18:48 [binutils-gdb] gdb: include gdbarch.h in hppa-linux-nat.c Simon Marchi
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).