aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2020-03-14 16:49:41 +0100
committerKamil Rytarowski <n54@gmx.com>2020-03-14 16:49:41 +0100
commitf90280caf5b34ebd564809a7f66685efc79bbf6d (patch)
tree7ee2a0666b911a4165251df856b8af17ebf3f7dc /gdb
parent6def66f1404e58b376655f6fb622aeb9dfc0f587 (diff)
downloadgdb-f90280caf5b34ebd564809a7f66685efc79bbf6d.zip
gdb-f90280caf5b34ebd564809a7f66685efc79bbf6d.tar.gz
gdb-f90280caf5b34ebd564809a7f66685efc79bbf6d.tar.bz2
Define _KERNTYPES in m68k-bsd-nat.c
Fixes build on NetBSD. types.h does not define register_t by default. gdb/ChangeLog: * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of register_t.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/m68k-bsd-nat.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e4b4e68..26429a8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2020-03-14 Kamil Rytarowski <n54@gmx.com>
+ * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
+ register_t.
+
+2020-03-14 Kamil Rytarowski <n54@gmx.com>
+
* alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
it to the ptrace call.
* alpha-bsd-nat.c (store_registers): Likewise.
diff --git a/gdb/m68k-bsd-nat.c b/gdb/m68k-bsd-nat.c
index 184b5c2..9f0ecf9 100644
--- a/gdb/m68k-bsd-nat.c
+++ b/gdb/m68k-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 "gdbcore.h"
#include "inferior.h"