From a6e69c1f1de84549d99792031dd05d5ba70bd8a5 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 18 Jan 2016 11:59:45 -0800 Subject: [PATCH] Fix detection of "r_fs" and "r_gs" on FreeBSD. Include as a prerequisite for when checking for the r_fs and r_gs members in struct reg. Note that the previous test for already includes as a prerequisite. gdb/ChangeLog: * configure.ac: Include + + * configure.ac: Include * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS diff --git a/gdb/configure b/gdb/configure index 4abedd3b119..11f91e31cbf 100755 --- a/gdb/configure +++ b/gdb/configure @@ -12782,7 +12782,8 @@ fi # See if 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'. -ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include +ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include +#include " if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then : @@ -12792,7 +12793,8 @@ _ACEOF fi -ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include +ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include +#include " if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then : diff --git a/gdb/configure.ac b/gdb/configure.ac index e2a7e6848e1..8f9486e2025 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1448,7 +1448,8 @@ fi # See if 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'. AC_CHECK_MEMBERS([struct reg.r_fs, struct reg.r_gs], [], [], - [#include ]) + [#include +#include ]) # See if 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 -- 2.30.2