mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 12:03:41 +08:00
Fix detection of "r_fs" and "r_gs" on FreeBSD.
Include <sys/types.h> as a prerequisite for <machine/reg.h> when checking for the r_fs and r_gs members in struct reg. Note that the previous test for <machine/reg.h> already includes <sys/types.h> as a prerequisite. gdb/ChangeLog: * configure.ac: Include <sys/types.h when checking for "r_fs" in "struct reg". * configure: Regenerate.
This commit is contained in:
parent
34e967a5f3
commit
a6e69c1f1d
@ -1,3 +1,9 @@
|
|||||||
|
2016-01-19 John Baldwin <jhb@FreeBSD.org>
|
||||||
|
|
||||||
|
* configure.ac: Include <sys/types.h when checking for "r_fs" in
|
||||||
|
"struct reg".
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
|
2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
|
||||||
|
|
||||||
* mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
|
* mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
|
||||||
|
6
gdb/configure
vendored
6
gdb/configure
vendored
@ -12782,7 +12782,8 @@ fi
|
|||||||
|
|
||||||
# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
|
# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
|
||||||
# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
|
# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
|
||||||
ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
|
ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
|
||||||
|
#include <machine/reg.h>
|
||||||
"
|
"
|
||||||
if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
|
if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
|
||||||
|
|
||||||
@ -12792,7 +12793,8 @@ _ACEOF
|
|||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
|
ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
|
||||||
|
#include <machine/reg.h>
|
||||||
"
|
"
|
||||||
if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
|
if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
|
||||||
|
|
||||||
|
@ -1448,7 +1448,8 @@ fi
|
|||||||
# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
|
# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
|
||||||
# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
|
# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
|
||||||
AC_CHECK_MEMBERS([struct reg.r_fs, struct reg.r_gs], [], [],
|
AC_CHECK_MEMBERS([struct reg.r_fs, struct reg.r_gs], [], [],
|
||||||
[#include <machine/reg.h>])
|
[#include <sys/types.h>
|
||||||
|
#include <machine/reg.h>])
|
||||||
|
|
||||||
# See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
|
# See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
|
||||||
# Older amd64 Linux's don't have the fs_base and gs_base members of
|
# Older amd64 Linux's don't have the fs_base and gs_base members of
|
||||||
|
Loading…
Reference in New Issue
Block a user