diff options
author | John Baldwin <jhb@FreeBSD.org> | 2017-09-04 19:34:48 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2017-09-04 19:34:48 -0700 |
commit | c49fbc6c79e0c479371e0ba7be0c8d1137016864 (patch) | |
tree | ec4401adc6aedbd9569ac29a0a7cb82e98e627b6 /gdb/bsd-kvm.c | |
parent | Include "x86-xstate.h" for X86_XSTATE_* constants. (diff) | |
download | binutils-gdb-c49fbc6c79e0c479371e0ba7be0c8d1137016864.tar.gz binutils-gdb-c49fbc6c79e0c479371e0ba7be0c8d1137016864.tar.bz2 binutils-gdb-c49fbc6c79e0c479371e0ba7be0c8d1137016864.zip |
Define _KMEMUSER before including BSD kernel headers.
Recent versions of NetBSD hide certain kernel structures needed by the
KVM target from userland unless this macro is defined.
gdb/ChangeLog:
* bsd-kvm.o: Define _KMEMUSER.
* configure.ac: Define _KMEMUSER when checking for "struct lwp".
* configure: Regenerate.
Diffstat (limited to 'gdb/bsd-kvm.c')
-rw-r--r-- | gdb/bsd-kvm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c index 98e242836d9..8c2139462dc 100644 --- a/gdb/bsd-kvm.c +++ b/gdb/bsd-kvm.c @@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#define _KMEMUSER #include "defs.h" #include "cli/cli-cmds.h" #include "command.h" |