public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Define _KERNTYPES in alpha-bsd-nat.c
@ 2020-03-14 14:55 Kamil Rytarowski
0 siblings, 0 replies; only message in thread
From: Kamil Rytarowski @ 2020-03-14 14:55 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2190cf067b87e804c59c0a0c14c8ae48deabfbf4
commit 2190cf067b87e804c59c0a0c14c8ae48deabfbf4
Author: Kamil Rytarowski <n54@gmx.com>
Date: Sat Mar 14 15:53:47 2020 +0100
Define _KERNTYPES in alpha-bsd-nat.c
Fixes build on NetBSD. types.h does not define register_t by default.
gdb/ChangeLog:
* alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
register_t.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/alpha-bsd-nat.c | 2 ++
2 files changed, 7 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 10f52ebbcef..4407064f43c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2020-03-14 Kamil Rytarowski <n54@gmx.com>
+
+ * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
+ register_t.
+
2020-03-14 Kamil Rytarowski <n54@gmx.com>
* arm-nbsd-nat.c (fetch_register): New variable lwp and pass
diff --git a/gdb/alpha-bsd-nat.c b/gdb/alpha-bsd-nat.c
index 747c3c5abb6..49f69f540e9 100644
--- a/gdb/alpha-bsd-nat.c
+++ b/gdb/alpha-bsd-nat.c
@@ -17,6 +17,8 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+/* We define this to get types like register_t. */
+#define _KERNTYPES
#include "defs.h"
#include "inferior.h"
#include "regcache.h"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-14 14:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-14 14:55 [binutils-gdb] Define _KERNTYPES in alpha-bsd-nat.c Kamil Rytarowski
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).