aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2020-03-14 12:54:47 +0100
committerKamil Rytarowski <n54@gmx.com>2020-03-14 12:54:47 +0100
commit8110f842bc52940d27b6f1e8e5ab711238d9d210 (patch)
tree0f3ff4d3f301ad5293857b9c6d6dc4fd965f5a70 /gdb
parent52feded7781821d227db0be188e564698d29fe9e (diff)
downloadgdb-8110f842bc52940d27b6f1e8e5ab711238d9d210.zip
gdb-8110f842bc52940d27b6f1e8e5ab711238d9d210.tar.gz
gdb-8110f842bc52940d27b6f1e8e5ab711238d9d210.tar.bz2
Define _KERNTYPES in mips-nbsd-nat.c
Fixes build on NetBSD. types.h does not define register_t by default. gdb/ChangeLog: * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of register_t.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/mips-nbsd-nat.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5b757d9..a0300cc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2020-03-14 Kamil Rytarowski <n54@gmx.com>
+ * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
+ register_t.
+
+2020-03-14 Kamil Rytarowski <n54@gmx.com>
+
* ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
register_t.
diff --git a/gdb/mips-nbsd-nat.c b/gdb/mips-nbsd-nat.c
index 527c67a..461304a 100644
--- a/gdb/mips-nbsd-nat.c
+++ b/gdb/mips-nbsd-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"