aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2020-03-14 15:53:47 +0100
committerKamil Rytarowski <n54@gmx.com>2020-03-14 15:55:44 +0100
commit2190cf067b87e804c59c0a0c14c8ae48deabfbf4 (patch)
tree5c24a5a89488e02d5919b3ceb1502fb9af8e8e33
parent54c4382534f0c894434deca5eb89cd02661d6feb (diff)
downloadfsf-binutils-gdb-2190cf067b87e804c59c0a0c14c8ae48deabfbf4.zip
fsf-binutils-gdb-2190cf067b87e804c59c0a0c14c8ae48deabfbf4.tar.gz
fsf-binutils-gdb-2190cf067b87e804c59c0a0c14c8ae48deabfbf4.tar.bz2
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/alpha-bsd-nat.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 10f52eb..4407064 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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
it to the ptrace call.
* arm-nbsd-nat.c (fetch_fp_register): Likewise.
diff --git a/gdb/alpha-bsd-nat.c b/gdb/alpha-bsd-nat.c
index 747c3c5..49f69f5 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"