]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb] Clean whitespace in *.ac and *.m4 files
authorTom de Vries <tdevries@suse.de>
Tue, 2 Dec 2025 19:52:19 +0000 (20:52 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 2 Dec 2025 19:52:19 +0000 (20:52 +0100)
This is the result of:
...
$ git rm -f $(find gdb* -name "*.ac")
$ git rm -f $(find gdb* -name "*.m4")
$ git commit -a -m tmp
$ git revert HEAD
$ git rebase --whitespace=fix HEAD^
$ git reset --soft HEAD^
$ git commit --amend
...
and running autoreconf -f in directories gdb, gdb/testsuite, gdbsupport and
gdbserver.

Tested on x86_64-linux.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
16 files changed:
gdb/acinclude.m4
gdb/ax_cxx_compile_stdcxx.m4
gdb/configure
gdb/configure.ac
gdb/sanitize.m4
gdb/testsuite/configure
gdb/testsuite/configure.ac
gdbserver/acinclude.m4
gdbserver/configure
gdbserver/configure.ac
gdbsupport/common.m4
gdbsupport/compiler-type.m4
gdbsupport/configure
gdbsupport/configure.ac
gdbsupport/selftest.m4
gdbsupport/warning.m4

index 915082056dd9ee87fa1c97c205dbf73467117b99..f2cd187beda3636ac8f5f0e840ed35b15044076e 100644 (file)
@@ -55,7 +55,7 @@ m4_include(../gdbsupport/ptrace.m4)
 
 m4_include(ax_cxx_compile_stdcxx.m4)
 
-dnl written by Guido Draheim <guidod@gmx.de>, original by Alexandre Oliva 
+dnl written by Guido Draheim <guidod@gmx.de>, original by Alexandre Oliva
 dnl Version 1.3 (2001/03/02)
 dnl source http://www.gnu.org/software/ac-archive/Miscellaneous/ac_define_dir.html
 
@@ -181,7 +181,7 @@ dnl VARIABLE_RELOCATABLE to 1; otherwise it is defined as 0.
 AC_DEFUN([GDB_AC_DEFINE_RELOCATABLE], [
   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
      if test "x$prefix" = xNONE; then
-       test_prefix=/usr/local
+       test_prefix=/usr/local
      else
        test_prefix=$prefix
      fi
index 3dc58fba298c545bb53faca2e3d6ada59d6566bc..5740a051ed205c88e278ad66546ad82db592c608 100644 (file)
@@ -59,18 +59,18 @@ dnl  (serial version number 13).
 
 AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl
   m4_if([$1], [11], [ax_cxx_compile_alternatives="11 0x"],
-        [$1], [14], [ax_cxx_compile_alternatives="14 1y"],
-        [$1], [17], [ax_cxx_compile_alternatives="17 1z"],
-        [$1], [20], [ax_cxx_compile_alternatives="20"],
-        [m4_fatal([invalid first argument `$1' to AX_CXX_COMPILE_STDCXX])])dnl
+       [$1], [14], [ax_cxx_compile_alternatives="14 1y"],
+       [$1], [17], [ax_cxx_compile_alternatives="17 1z"],
+       [$1], [20], [ax_cxx_compile_alternatives="20"],
+       [m4_fatal([invalid first argument `$1' to AX_CXX_COMPILE_STDCXX])])dnl
   m4_if([$2], [], [],
-        [$2], [ext], [],
-        [$2], [noext], [],
-        [m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX])])dnl
+       [$2], [ext], [],
+       [$2], [noext], [],
+       [m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX])])dnl
   m4_if([$3], [], [ax_cxx_compile_cxx$1_required=true],
-        [$3], [mandatory], [ax_cxx_compile_cxx$1_required=true],
-        [$3], [optional], [ax_cxx_compile_cxx$1_required=false],
-        [m4_fatal([invalid third argument `$3' to AX_CXX_COMPILE_STDCXX])])
+       [$3], [mandatory], [ax_cxx_compile_cxx$1_required=true],
+       [$3], [optional], [ax_cxx_compile_cxx$1_required=false],
+       [m4_fatal([invalid third argument `$3' to AX_CXX_COMPILE_STDCXX])])
   AC_LANG_PUSH([C++])dnl
   CXX_DIALECT=""
   ac_success=no
@@ -79,8 +79,8 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl
     AC_CACHE_CHECK(whether $CXX supports C++$1 features by default,
                   ax_cv_cxx_compile_cxx$1,
       [AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_testbody_$1])],
-        [ax_cv_cxx_compile_cxx$1=yes],
-        [ax_cv_cxx_compile_cxx$1=no])])
+       [ax_cv_cxx_compile_cxx$1=yes],
+       [ax_cv_cxx_compile_cxx$1=no])])
     if test x$ax_cv_cxx_compile_cxx$1 = xyes; then
       ac_success=yes
     fi])
@@ -91,21 +91,21 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl
       switch="-std=gnu++${alternative}"
       cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx$1_$switch])
       AC_CACHE_CHECK(whether $CXX supports C++$1 features with $switch,
-                     $cachevar,
-        [ac_save_CXX="$CXX"
-         CXX="$CXX $switch"
-         AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_testbody_$1])],
-          [eval $cachevar=yes],
-          [eval $cachevar=no])
-         CXX="$ac_save_CXX"])
+                    $cachevar,
+       [ac_save_CXX="$CXX"
+        CXX="$CXX $switch"
+        AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_testbody_$1])],
+         [eval $cachevar=yes],
+         [eval $cachevar=no])
+        CXX="$ac_save_CXX"])
       if eval test x\$$cachevar = xyes; then
-        CXX_DIALECT="$switch"
-        CXX="$CXX $switch"
-        if test -n "$CXXCPP" ; then
-          CXXCPP="$CXXCPP $switch"
-        fi
-        ac_success=yes
-        break
+       CXX_DIALECT="$switch"
+       CXX="$CXX $switch"
+       if test -n "$CXXCPP" ; then
+         CXXCPP="$CXXCPP $switch"
+       fi
+       ac_success=yes
+       break
       fi
     done
   fi])
@@ -118,35 +118,35 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl
     dnl MSVC needs -std:c++NN for C++17 and later (default is C++14)
     for alternative in ${ax_cxx_compile_alternatives}; do
       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
-        if test x"$switch" = xMSVC; then
-          dnl AS_TR_SH maps both `:` and `=` to `_` so -std:c++17 would collide
-          dnl with -std=c++17.  We suffix the cache variable name with _MSVC to
-          dnl avoid this.
-          switch=-std:c++${alternative}
-          cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx$1_${switch}_MSVC])
-        else
-          cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx$1_$switch])
-        fi
-        AC_CACHE_CHECK(whether $CXX supports C++$1 features with $switch,
-                       $cachevar,
-          [ac_save_CXX="$CXX"
-           CXX="$CXX $switch"
-           AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_testbody_$1])],
-            [eval $cachevar=yes],
-            [eval $cachevar=no])
-           CXX="$ac_save_CXX"])
-        if eval test x\$$cachevar = xyes; then
-          CXX_DIALECT="$switch"
-          CXX="$CXX $switch"
-          if test -n "$CXXCPP" ; then
-            CXXCPP="$CXXCPP $switch"
-          fi
-          ac_success=yes
-          break
-        fi
+       if test x"$switch" = xMSVC; then
+         dnl AS_TR_SH maps both `:` and `=` to `_` so -std:c++17 would collide
+         dnl with -std=c++17.  We suffix the cache variable name with _MSVC to
+         dnl avoid this.
+         switch=-std:c++${alternative}
+         cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx$1_${switch}_MSVC])
+       else
+         cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx$1_$switch])
+       fi
+       AC_CACHE_CHECK(whether $CXX supports C++$1 features with $switch,
+                      $cachevar,
+         [ac_save_CXX="$CXX"
+          CXX="$CXX $switch"
+          AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_testbody_$1])],
+           [eval $cachevar=yes],
+           [eval $cachevar=no])
+          CXX="$ac_save_CXX"])
+       if eval test x\$$cachevar = xyes; then
+         CXX_DIALECT="$switch"
+         CXX="$CXX $switch"
+         if test -n "$CXXCPP" ; then
+           CXXCPP="$CXXCPP $switch"
+         fi
+         ac_success=yes
+         break
+       fi
       done
       if test x$ac_success = xyes; then
-        break
+       break
       fi
     done
   fi])
@@ -162,7 +162,7 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl
   else
     HAVE_CXX$1=1
     AC_DEFINE(HAVE_CXX$1,1,
-              [define if the compiler supports basic C++$1 syntax])
+             [define if the compiler supports basic C++$1 syntax])
   fi
   AC_SUBST(HAVE_CXX$1)
   AC_SUBST(CXX_DIALECT)
@@ -414,10 +414,10 @@ namespace cxx11
       auto c = [=](){ return a + b; }();
       auto d = [&](){ return c; }();
       auto e = [a, &b](int x) mutable {
-        const auto identity = [](int y){ return y; };
-        for (auto i = 0; i < a; ++i)
-          a += b--;
-        return x + identity(a + b);
+       const auto identity = [](int y){ return y; };
+       for (auto i = 0; i < a; ++i)
+         a += b--;
+       return x + identity(a + b);
       }(0);
       return a + b + c + d + e;
     }
@@ -431,7 +431,7 @@ namespace cxx11
       using unary_t = decltype(unary);
       const auto higher1st = [](nullary_t f){ return f(); };
       const auto higher2nd = [unary](nullary_t f1){
-        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
+       return [unary, f1](unary_t f2){ return f2(unary(f1())); };
       };
       return higher1st(nullary) + higher2nd(nullary)(unary);
     }
@@ -522,11 +522,11 @@ namespace cxx14
     test()
     {
       const auto lambda = [](auto&&... args){
-        const auto istiny = [](auto x){
-          return (sizeof(x) == 1UL) ? 1 : 0;
-        };
-        const int aretiny[] = { istiny(args)... };
-        return aretiny[0];
+       const auto istiny = [](auto x){
+         return (sizeof(x) == 1UL) ? 1 : 0;
+       };
+       const int aretiny[] = { istiny(args)... };
+       return aretiny[0];
       };
       return lambda(1, 1L, 1.0f, '1');
     }
@@ -550,7 +550,7 @@ namespace cxx14
     {
       auto length = 0UL;
       for (auto p = s; *p; ++p)
-        ++length;
+       ++length;
       return length;
     }
 
@@ -711,10 +711,10 @@ namespace cxx17
       switch (f1())
       {
       case 17:
-        f1();
-        [[fallthrough]];
+       f1();
+       [[fallthrough]];
       case 42:
-        f1();
+       f1();
       }
       return f1();
     }
@@ -732,14 +732,14 @@ namespace cxx17
     struct base2
     {
       base2() {
-        b3 = 42;
+       b3 = 42;
       }
       int b3;
     };
 
     struct derived : base1, base2
     {
-        int d;
+       int d;
     };
 
     derived d1 {{1, 2}, {}, 4};  // full initialization
@@ -756,18 +756,18 @@ namespace cxx17
 
       int& operator* ()
       {
-        return i;
+       return i;
       }
 
       const int& operator* () const
       {
-        return i;
+       return i;
       }
 
       iter& operator++()
       {
-        ++i;
-        return *this;
+       ++i;
+       return *this;
       }
     };
 
@@ -790,12 +790,12 @@ namespace cxx17
     {
       iter begin() const
       {
-        return {0};
+       return {0};
       }
 
       sentinel end() const
       {
-        return {5};
+       return {5};
       }
     };
 
@@ -805,7 +805,7 @@ namespace cxx17
 
       for (auto i : r)
       {
-        [[maybe_unused]] auto v = i;
+       [[maybe_unused]] auto v = i;
       }
     }
 
@@ -819,10 +819,10 @@ namespace cxx17
       int i;
       int foo()
       {
-        return [*this]()
-        {
-          return i;
-        }();
+       return [*this]()
+       {
+         return i;
+       }();
       }
     };
 
@@ -846,11 +846,11 @@ namespace cxx17
     {
       if constexpr(cond)
       {
-        return 13;
+       return 13;
       }
       else
       {
-        return 42;
+       return 42;
       }
     }
 
@@ -868,16 +868,16 @@ namespace cxx17
     {
       if (auto i = f(); i > 0)
       {
-        return 3;
+       return 3;
       }
 
       switch (auto i = f(); i + 4)
       {
       case 17:
-        return 2;
+       return 2;
 
       default:
-        return 1;
+       return 1;
       }
     }
 
@@ -890,8 +890,8 @@ namespace cxx17
     struct pair
     {
       pair (T1 p1, T2 p2)
-        : m1 {p1},
-          m2 {p2}
+       : m1 {p1},
+         m2 {p2}
       {}
 
       T1 m1;
index 38be50fc57efa2e822b19c846ab569113e01e765..26fc9af067921a801930f2ae09bc212d9b92c690 100755 (executable)
@@ -17128,10 +17128,10 @@ namespace cxx11
       auto c = [=](){ return a + b; }();
       auto d = [&](){ return c; }();
       auto e = [a, &b](int x) mutable {
-        const auto identity = [](int y){ return y; };
-        for (auto i = 0; i < a; ++i)
-          a += b--;
-        return x + identity(a + b);
+       const auto identity = [](int y){ return y; };
+       for (auto i = 0; i < a; ++i)
+         a += b--;
+       return x + identity(a + b);
       }(0);
       return a + b + c + d + e;
     }
@@ -17145,7 +17145,7 @@ namespace cxx11
       using unary_t = decltype(unary);
       const auto higher1st = [](nullary_t f){ return f(); };
       const auto higher2nd = [unary](nullary_t f1){
-        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
+       return [unary, f1](unary_t f2){ return f2(unary(f1())); };
       };
       return higher1st(nullary) + higher2nd(nullary)(unary);
     }
@@ -17232,11 +17232,11 @@ namespace cxx14
     test()
     {
       const auto lambda = [](auto&&... args){
-        const auto istiny = [](auto x){
-          return (sizeof(x) == 1UL) ? 1 : 0;
-        };
-        const int aretiny[] = { istiny(args)... };
-        return aretiny[0];
+       const auto istiny = [](auto x){
+         return (sizeof(x) == 1UL) ? 1 : 0;
+       };
+       const int aretiny[] = { istiny(args)... };
+       return aretiny[0];
       };
       return lambda(1, 1L, 1.0f, '1');
     }
@@ -17260,7 +17260,7 @@ namespace cxx14
     {
       auto length = 0UL;
       for (auto p = s; *p; ++p)
-        ++length;
+       ++length;
       return length;
     }
 
@@ -17417,10 +17417,10 @@ namespace cxx17
       switch (f1())
       {
       case 17:
-        f1();
-        [[fallthrough]];
+       f1();
+       [[fallthrough]];
       case 42:
-        f1();
+       f1();
       }
       return f1();
     }
@@ -17438,14 +17438,14 @@ namespace cxx17
     struct base2
     {
       base2() {
-        b3 = 42;
+       b3 = 42;
       }
       int b3;
     };
 
     struct derived : base1, base2
     {
-        int d;
+       int d;
     };
 
     derived d1 {{1, 2}, {}, 4};  // full initialization
@@ -17462,18 +17462,18 @@ namespace cxx17
 
       int& operator* ()
       {
-        return i;
+       return i;
       }
 
       const int& operator* () const
       {
-        return i;
+       return i;
       }
 
       iter& operator++()
       {
-        ++i;
-        return *this;
+       ++i;
+       return *this;
       }
     };
 
@@ -17496,12 +17496,12 @@ namespace cxx17
     {
       iter begin() const
       {
-        return {0};
+       return {0};
       }
 
       sentinel end() const
       {
-        return {5};
+       return {5};
       }
     };
 
@@ -17511,7 +17511,7 @@ namespace cxx17
 
       for (auto i : r)
       {
-        [[maybe_unused]] auto v = i;
+       [[maybe_unused]] auto v = i;
       }
     }
 
@@ -17525,10 +17525,10 @@ namespace cxx17
       int i;
       int foo()
       {
-        return [*this]()
-        {
-          return i;
-        }();
+       return [*this]()
+       {
+         return i;
+       }();
       }
     };
 
@@ -17552,11 +17552,11 @@ namespace cxx17
     {
       if constexpr(cond)
       {
-        return 13;
+       return 13;
       }
       else
       {
-        return 42;
+       return 42;
       }
     }
 
@@ -17574,16 +17574,16 @@ namespace cxx17
     {
       if (auto i = f(); i > 0)
       {
-        return 3;
+       return 3;
       }
 
       switch (auto i = f(); i + 4)
       {
       case 17:
-        return 2;
+       return 2;
 
       default:
-        return 1;
+       return 1;
       }
     }
 
@@ -17596,8 +17596,8 @@ namespace cxx17
     struct pair
     {
       pair (T1 p1, T2 p2)
-        : m1 {p1},
-          m2 {p2}
+       : m1 {p1},
+         m2 {p2}
       {}
 
       T1 m1;
@@ -17730,8 +17730,8 @@ if eval \${$cachevar+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_save_CXX="$CXX"
-         CXX="$CXX $switch"
-         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+        CXX="$CXX $switch"
+        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
 
@@ -17945,10 +17945,10 @@ namespace cxx11
       auto c = [=](){ return a + b; }();
       auto d = [&](){ return c; }();
       auto e = [a, &b](int x) mutable {
-        const auto identity = [](int y){ return y; };
-        for (auto i = 0; i < a; ++i)
-          a += b--;
-        return x + identity(a + b);
+       const auto identity = [](int y){ return y; };
+       for (auto i = 0; i < a; ++i)
+         a += b--;
+       return x + identity(a + b);
       }(0);
       return a + b + c + d + e;
     }
@@ -17962,7 +17962,7 @@ namespace cxx11
       using unary_t = decltype(unary);
       const auto higher1st = [](nullary_t f){ return f(); };
       const auto higher2nd = [unary](nullary_t f1){
-        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
+       return [unary, f1](unary_t f2){ return f2(unary(f1())); };
       };
       return higher1st(nullary) + higher2nd(nullary)(unary);
     }
@@ -18049,11 +18049,11 @@ namespace cxx14
     test()
     {
       const auto lambda = [](auto&&... args){
-        const auto istiny = [](auto x){
-          return (sizeof(x) == 1UL) ? 1 : 0;
-        };
-        const int aretiny[] = { istiny(args)... };
-        return aretiny[0];
+       const auto istiny = [](auto x){
+         return (sizeof(x) == 1UL) ? 1 : 0;
+       };
+       const int aretiny[] = { istiny(args)... };
+       return aretiny[0];
       };
       return lambda(1, 1L, 1.0f, '1');
     }
@@ -18077,7 +18077,7 @@ namespace cxx14
     {
       auto length = 0UL;
       for (auto p = s; *p; ++p)
-        ++length;
+       ++length;
       return length;
     }
 
@@ -18234,10 +18234,10 @@ namespace cxx17
       switch (f1())
       {
       case 17:
-        f1();
-        [[fallthrough]];
+       f1();
+       [[fallthrough]];
       case 42:
-        f1();
+       f1();
       }
       return f1();
     }
@@ -18255,14 +18255,14 @@ namespace cxx17
     struct base2
     {
       base2() {
-        b3 = 42;
+       b3 = 42;
       }
       int b3;
     };
 
     struct derived : base1, base2
     {
-        int d;
+       int d;
     };
 
     derived d1 {{1, 2}, {}, 4};  // full initialization
@@ -18279,18 +18279,18 @@ namespace cxx17
 
       int& operator* ()
       {
-        return i;
+       return i;
       }
 
       const int& operator* () const
       {
-        return i;
+       return i;
       }
 
       iter& operator++()
       {
-        ++i;
-        return *this;
+       ++i;
+       return *this;
       }
     };
 
@@ -18313,12 +18313,12 @@ namespace cxx17
     {
       iter begin() const
       {
-        return {0};
+       return {0};
       }
 
       sentinel end() const
       {
-        return {5};
+       return {5};
       }
     };
 
@@ -18328,7 +18328,7 @@ namespace cxx17
 
       for (auto i : r)
       {
-        [[maybe_unused]] auto v = i;
+       [[maybe_unused]] auto v = i;
       }
     }
 
@@ -18342,10 +18342,10 @@ namespace cxx17
       int i;
       int foo()
       {
-        return [*this]()
-        {
-          return i;
-        }();
+       return [*this]()
+       {
+         return i;
+       }();
       }
     };
 
@@ -18369,11 +18369,11 @@ namespace cxx17
     {
       if constexpr(cond)
       {
-        return 13;
+       return 13;
       }
       else
       {
-        return 42;
+       return 42;
       }
     }
 
@@ -18391,16 +18391,16 @@ namespace cxx17
     {
       if (auto i = f(); i > 0)
       {
-        return 3;
+       return 3;
       }
 
       switch (auto i = f(); i + 4)
       {
       case 17:
-        return 2;
+       return 2;
 
       default:
-        return 1;
+       return 1;
       }
     }
 
@@ -18413,8 +18413,8 @@ namespace cxx17
     struct pair
     {
       pair (T1 p1, T2 p2)
-        : m1 {p1},
-          m2 {p2}
+       : m1 {p1},
+         m2 {p2}
       {}
 
       T1 m1;
@@ -18530,19 +18530,19 @@ else
   eval $cachevar=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-         CXX="$ac_save_CXX"
+        CXX="$ac_save_CXX"
 fi
 eval ac_res=\$$cachevar
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 $as_echo "$ac_res" >&6; }
       if eval test x\$$cachevar = xyes; then
-        CXX_DIALECT="$switch"
-        CXX="$CXX $switch"
-        if test -n "$CXXCPP" ; then
-          CXXCPP="$CXXCPP $switch"
-        fi
-        ac_success=yes
-        break
+       CXX_DIALECT="$switch"
+       CXX="$CXX $switch"
+       if test -n "$CXXCPP" ; then
+         CXXCPP="$CXXCPP $switch"
+       fi
+       ac_success=yes
+       break
       fi
     done
   fi
@@ -18550,20 +18550,20 @@ $as_echo "$ac_res" >&6; }
     if test x$ac_success = xno; then
                     for alternative in ${ax_cxx_compile_alternatives}; do
       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
-        if test x"$switch" = xMSVC; then
-                                        switch=-std:c++${alternative}
-          cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | $as_tr_sh`
-        else
-          cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
-        fi
-        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
+       if test x"$switch" = xMSVC; then
+                                 switch=-std:c++${alternative}
+         cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | $as_tr_sh`
+       else
+         cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
+       fi
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
 if eval \${$cachevar+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_save_CXX="$CXX"
-           CXX="$CXX $switch"
-           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+          CXX="$CXX $switch"
+          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
 
@@ -18777,10 +18777,10 @@ namespace cxx11
       auto c = [=](){ return a + b; }();
       auto d = [&](){ return c; }();
       auto e = [a, &b](int x) mutable {
-        const auto identity = [](int y){ return y; };
-        for (auto i = 0; i < a; ++i)
-          a += b--;
-        return x + identity(a + b);
+       const auto identity = [](int y){ return y; };
+       for (auto i = 0; i < a; ++i)
+         a += b--;
+       return x + identity(a + b);
       }(0);
       return a + b + c + d + e;
     }
@@ -18794,7 +18794,7 @@ namespace cxx11
       using unary_t = decltype(unary);
       const auto higher1st = [](nullary_t f){ return f(); };
       const auto higher2nd = [unary](nullary_t f1){
-        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
+       return [unary, f1](unary_t f2){ return f2(unary(f1())); };
       };
       return higher1st(nullary) + higher2nd(nullary)(unary);
     }
@@ -18881,11 +18881,11 @@ namespace cxx14
     test()
     {
       const auto lambda = [](auto&&... args){
-        const auto istiny = [](auto x){
-          return (sizeof(x) == 1UL) ? 1 : 0;
-        };
-        const int aretiny[] = { istiny(args)... };
-        return aretiny[0];
+       const auto istiny = [](auto x){
+         return (sizeof(x) == 1UL) ? 1 : 0;
+       };
+       const int aretiny[] = { istiny(args)... };
+       return aretiny[0];
       };
       return lambda(1, 1L, 1.0f, '1');
     }
@@ -18909,7 +18909,7 @@ namespace cxx14
     {
       auto length = 0UL;
       for (auto p = s; *p; ++p)
-        ++length;
+       ++length;
       return length;
     }
 
@@ -19066,10 +19066,10 @@ namespace cxx17
       switch (f1())
       {
       case 17:
-        f1();
-        [[fallthrough]];
+       f1();
+       [[fallthrough]];
       case 42:
-        f1();
+       f1();
       }
       return f1();
     }
@@ -19087,14 +19087,14 @@ namespace cxx17
     struct base2
     {
       base2() {
-        b3 = 42;
+       b3 = 42;
       }
       int b3;
     };
 
     struct derived : base1, base2
     {
-        int d;
+       int d;
     };
 
     derived d1 {{1, 2}, {}, 4};  // full initialization
@@ -19111,18 +19111,18 @@ namespace cxx17
 
       int& operator* ()
       {
-        return i;
+       return i;
       }
 
       const int& operator* () const
       {
-        return i;
+       return i;
       }
 
       iter& operator++()
       {
-        ++i;
-        return *this;
+       ++i;
+       return *this;
       }
     };
 
@@ -19145,12 +19145,12 @@ namespace cxx17
     {
       iter begin() const
       {
-        return {0};
+       return {0};
       }
 
       sentinel end() const
       {
-        return {5};
+       return {5};
       }
     };
 
@@ -19160,7 +19160,7 @@ namespace cxx17
 
       for (auto i : r)
       {
-        [[maybe_unused]] auto v = i;
+       [[maybe_unused]] auto v = i;
       }
     }
 
@@ -19174,10 +19174,10 @@ namespace cxx17
       int i;
       int foo()
       {
-        return [*this]()
-        {
-          return i;
-        }();
+       return [*this]()
+       {
+         return i;
+       }();
       }
     };
 
@@ -19201,11 +19201,11 @@ namespace cxx17
     {
       if constexpr(cond)
       {
-        return 13;
+       return 13;
       }
       else
       {
-        return 42;
+       return 42;
       }
     }
 
@@ -19223,16 +19223,16 @@ namespace cxx17
     {
       if (auto i = f(); i > 0)
       {
-        return 3;
+       return 3;
       }
 
       switch (auto i = f(); i + 4)
       {
       case 17:
-        return 2;
+       return 2;
 
       default:
-        return 1;
+       return 1;
       }
     }
 
@@ -19245,8 +19245,8 @@ namespace cxx17
     struct pair
     {
       pair (T1 p1, T2 p2)
-        : m1 {p1},
-          m2 {p2}
+       : m1 {p1},
+         m2 {p2}
       {}
 
       T1 m1;
@@ -19362,23 +19362,23 @@ else
   eval $cachevar=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-           CXX="$ac_save_CXX"
+          CXX="$ac_save_CXX"
 fi
 eval ac_res=\$$cachevar
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 $as_echo "$ac_res" >&6; }
-        if eval test x\$$cachevar = xyes; then
-          CXX_DIALECT="$switch"
-          CXX="$CXX $switch"
-          if test -n "$CXXCPP" ; then
-            CXXCPP="$CXXCPP $switch"
-          fi
-          ac_success=yes
-          break
-        fi
+       if eval test x\$$cachevar = xyes; then
+         CXX_DIALECT="$switch"
+         CXX="$CXX $switch"
+         if test -n "$CXXCPP" ; then
+           CXXCPP="$CXXCPP $switch"
+         fi
+         ac_success=yes
+         break
+       fi
       done
       if test x$ac_success = xyes; then
-        break
+       break
       fi
     done
   fi
@@ -21240,8 +21240,8 @@ int
 main ()
 {
 sigjmp_buf env;
-           while (! sigsetjmp (env, 1))
-             siglongjmp (env, 1);
+          while (! sigsetjmp (env, 1))
+            siglongjmp (env, 1);
 
   ;
   return 0;
@@ -24958,7 +24958,7 @@ _ACEOF
 
   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
      if test "x$prefix" = xNONE; then
-       test_prefix=/usr/local
+       test_prefix=/usr/local
      else
        test_prefix=$prefix
      fi
@@ -25036,7 +25036,7 @@ _ACEOF
 
   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
      if test "x$prefix" = xNONE; then
-       test_prefix=/usr/local
+       test_prefix=/usr/local
      else
        test_prefix=$prefix
      fi
@@ -25139,7 +25139,7 @@ subdirs="$subdirs testsuite"
 if test "${enable_targets+set}" = set; then :
   enableval=$enable_targets; case "${enableval}" in
   yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
-            ;;
+           ;;
   no)       enable_targets= ;;
   *)
        enable_targets=$enableval
@@ -25157,7 +25157,7 @@ fi
 if test "${enable_binary_file_formats+set}" = set; then :
   enableval=$enable_binary_file_formats; case "${enableval}" in
  yes | "") as_fn_error $? "enable-binary-file-formats option must specify file formats or 'all'" "$LINENO" 5
-            ;;
+           ;;
   no)       enable_binary_file_formats= ;;
   *)        enable_binary_file_formats=$enableval ;;
 esac
@@ -25288,9 +25288,9 @@ do
     # Canonicalize the secondary target names.
     result=`$ac_config_sub $targ_alias 2>/dev/null`
     if test -n "$result"; then
-        targ=$result
+       targ=$result
     else
-        targ=$targ_alias
+       targ=$targ_alias
     fi
 
     . ${srcdir}/configure.tgt
 
     # Target-specific object files
     for i in ${gdb_target_obs}; do
-        case " $TARGET_OBS " in
-        *" ${i} "*) ;;
-        *)
-          TARGET_OBS="$TARGET_OBS ${i}"
-          ;;
-        esac
+       case " $TARGET_OBS " in
+       *" ${i} "*) ;;
+       *)
+         TARGET_OBS="$TARGET_OBS ${i}"
+         ;;
+       esac
     done
 
     # Check whether this target needs 64-bit CORE_ADDR
@@ -27264,7 +27264,7 @@ _ACEOF
 
   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
      if test "x$prefix" = xNONE; then
-       test_prefix=/usr/local
+       test_prefix=/usr/local
      else
        test_prefix=$prefix
      fi
@@ -27738,7 +27738,7 @@ _ACEOF
 
   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
      if test "x$prefix" = xNONE; then
-       test_prefix=/usr/local
+       test_prefix=/usr/local
      else
        test_prefix=$prefix
      fi
@@ -28319,13 +28319,13 @@ else
       # ${with_python}.  On Windows/MinGW, this is where the Python
       # executable is.
       if test ! -x "${python_prog}"; then
-        python_prog="${with_python}/python"
-        python_prefix=
+       python_prog="${with_python}/python"
+       python_prefix=
       fi
       if test ! -x "${python_prog}"; then
-        # Fall back to gdb 7.0/7.1 behavior.
-        python_prog=missing
-        python_prefix=${with_python}
+       # Fall back to gdb 7.0/7.1 behavior.
+       python_prog=missing
+       python_prefix=${with_python}
       fi
     elif test -x "${with_python}"; then
       # While we can't run python compiled for $host (unless host == build),
@@ -28348,8 +28348,8 @@ else
     case "${with_python}" in
     yes | auto)
       if test "${build}" = "${host}"; then
-        # Look first for 'python', then 'python3'.
-        for ac_prog in python python3
+       # Look first for 'python', then 'python3'.
+       for ac_prog in python python3
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 done
 test -n "$python_prog_path" || python_prog_path="missing"
 
-        if test "${python_prog_path}" = missing; then
-          python_prog=missing
-        else
-          python_prog=${python_prog_path}
-        fi
+       if test "${python_prog_path}" = missing; then
+         python_prog=missing
+       else
+         python_prog=${python_prog_path}
+       fi
       else
-        # Not much we can do except assume the cross-compiler will find the
-        # right files.
-        python_prog=missing
+       # Not much we can do except assume the cross-compiler will find the
+       # right files.
+       python_prog=missing
       fi
       ;;
     *)
@@ -28530,9 +28530,9 @@ main ()
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
   have_libpython=yes
-                  found_usable_python=yes
-                  PYTHON_CPPFLAGS=$new_CPPFLAGS
-                  PYTHON_LIBS=$new_LIBS
+                 found_usable_python=yes
+                 PYTHON_CPPFLAGS=$new_CPPFLAGS
+                 PYTHON_LIBS=$new_LIBS
 fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
@@ -28566,7 +28566,7 @@ _ACEOF
 
   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
      if test "x$prefix" = xNONE; then
-       test_prefix=/usr/local
+       test_prefix=/usr/local
      else
        test_prefix=$prefix
      fi
@@ -28624,7 +28624,7 @@ _ACEOF
 
   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
      if test "x$prefix" = xNONE; then
-       test_prefix=/usr/local
+       test_prefix=/usr/local
      else
        test_prefix=$prefix
      fi
@@ -28697,10 +28697,10 @@ $as_echo "${PYTHON_CFLAGS}" >&6; }
 
   case "$gdb_host" in
     mingw64)
-           if test "${GCC}" = yes; then
-             CPPFLAGS="$CPPFLAGS -DMS_WIN64"
-           fi
-           ;;
+          if test "${GCC}" = yes; then
+            CPPFLAGS="$CPPFLAGS -DMS_WIN64"
+          fi
+          ;;
   esac
 else
   # Even if Python support is not compiled in, we need to have this file
@@ -28879,8 +28879,8 @@ scm_init_guile ();
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
   have_libguile=yes
-                    GUILE_CPPFLAGS=$new_CPPFLAGS
-                    GUILE_LIBS=$new_LIBS
+                   GUILE_CPPFLAGS=$new_CPPFLAGS
+                   GUILE_LIBS=$new_LIBS
 else
   found_usable_guile=no
 fi
@@ -28898,7 +28898,7 @@ fi
     LIBS=$save_LIBS
     if test "${found_usable_guile}" = no; then
       if test "${flag_errors}" = yes; then
-        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "linking guile version ${guile_version} test program failed
 See \`config.log' for more details" "$LINENO" 5; }
@@ -28963,8 +28963,8 @@ scm_init_guile ();
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
   have_libguile=yes
-                    GUILE_CPPFLAGS=$new_CPPFLAGS
-                    GUILE_LIBS=$new_LIBS
+                   GUILE_CPPFLAGS=$new_CPPFLAGS
+                   GUILE_LIBS=$new_LIBS
 else
   found_usable_guile=no
 fi
@@ -28982,7 +28982,7 @@ fi
     LIBS=$save_LIBS
     if test "${found_usable_guile}" = no; then
       if test "${flag_errors}" = yes; then
-        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "linking guile version ${guile_version} test program failed
 See \`config.log' for more details" "$LINENO" 5; }
@@ -29044,8 +29044,8 @@ scm_init_guile ();
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
   have_libguile=yes
-                    GUILE_CPPFLAGS=$new_CPPFLAGS
-                    GUILE_LIBS=$new_LIBS
+                   GUILE_CPPFLAGS=$new_CPPFLAGS
+                   GUILE_LIBS=$new_LIBS
 else
   found_usable_guile=no
 fi
@@ -29063,7 +29063,7 @@ fi
     LIBS=$save_LIBS
     if test "${found_usable_guile}" = no; then
       if test "${flag_errors}" = yes; then
-        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "linking guile version ${guile_version} test program failed
 See \`config.log' for more details" "$LINENO" 5; }
@@ -29135,8 +29135,8 @@ scm_init_guile ();
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
   have_libguile=yes
-                    GUILE_CPPFLAGS=$new_CPPFLAGS
-                    GUILE_LIBS=$new_LIBS
+                   GUILE_CPPFLAGS=$new_CPPFLAGS
+                   GUILE_LIBS=$new_LIBS
 else
   found_usable_guile=no
 fi
@@ -29154,7 +29154,7 @@ fi
     LIBS=$save_LIBS
     if test "${found_usable_guile}" = no; then
       if test "${flag_errors}" = yes; then
-        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "linking guile version ${guile_version} test program failed
 See \`config.log' for more details" "$LINENO" 5; }
@@ -29383,9 +29383,9 @@ $as_echo "no - pkg-config not found" >&6; }
   else
     if ${pkg_config_prog_path} --exists source-highlight; then
       case "$LDFLAGS" in
-        *static-libstdc*)
-          as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
-          ;;
+       *static-libstdc*)
+         as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
+         ;;
       esac
 
       srchigh_pkg_cflags=`${pkg_config_prog_path} --cflags source-highlight`
@@ -29417,7 +29417,7 @@ int
 main ()
 {
 std::string outlang = "esc.outlang";
-           new srchilite::SourceHighlight (outlang);
+          new srchilite::SourceHighlight (outlang);
 
   ;
   return 0;
@@ -29444,22 +29444,22 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
 
-        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
-        SRCHIGH_CFLAGS="$srchigh_pkg_cflags"
-        SRCHIGH_LIBS="$srchigh_pkg_libs"
+       SRCHIGH_CFLAGS="$srchigh_pkg_cflags"
+       SRCHIGH_LIBS="$srchigh_pkg_libs"
       else
-        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
-        if test "${enable_source_highlight}" = "yes"; then
-          as_fn_error $? "source-highlight in your system could not be used" "$LINENO" 5
-        fi
+       if test "${enable_source_highlight}" = "yes"; then
+         as_fn_error $? "source-highlight in your system could not be used" "$LINENO" 5
+       fi
       fi
     else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
       if test "${enable_source_highlight}" = "yes"; then
-        as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
+       as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
       fi
     fi
   fi
@@ -31064,17 +31064,17 @@ int
 main ()
 {
 
-          const char *code = "import ctypes\n";
-          Py_Initialize ();
-          PyObject *main_module = PyImport_AddModule ("__main__");
-          PyObject *global_dict = PyModule_GetDict (main_module);
-          PyObject *local_dict = PyDict_New ();
-          PyObject *py_code = Py_CompileString (code, "test", Py_single_input);
-          if (py_code == NULL)
-            return 1;
-          PyObject *res = PyEval_EvalCode (py_code, global_dict, local_dict);
-          Py_Finalize ();
-          return res ? 0 : 1;
+         const char *code = "import ctypes\n";
+         Py_Initialize ();
+         PyObject *main_module = PyImport_AddModule ("__main__");
+         PyObject *global_dict = PyModule_GetDict (main_module);
+         PyObject *local_dict = PyDict_New ();
+         PyObject *py_code = Py_CompileString (code, "test", Py_single_input);
+         if (py_code == NULL)
+           return 1;
+         PyObject *res = PyEval_EvalCode (py_code, global_dict, local_dict);
+         Py_Finalize ();
+         return res ? 0 : 1;
   ;
   return 0;
 }
@@ -31111,16 +31111,16 @@ else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
-         #include <execinfo.h>
+        #include <execinfo.h>
 
 int
 main ()
 {
 
-         int f;
-         void *b[2];
-         f = backtrace (b, 2);
-         backtrace_symbols_fd (b, f, 2);
+        int f;
+        void *b[2];
+        f = backtrace (b, 2);
+        backtrace_symbols_fd (b, f, 2);
 
   ;
   return 0;
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
       if test "$gdb_cv_have_aix_thread_debug" = yes; then
-         CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
-         CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
-         LIBS="$LIBS -lpthdebug"
-
-         # Older versions of AIX do not provide the declaration for
-         # the getthrds function (it appears that it was introduced
-         # with AIX 6.x).
-         ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
+        CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
+        CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
+        LIBS="$LIBS -lpthdebug"
+
+        # Older versions of AIX do not provide the declaration for
+        # the getthrds function (it appears that it was introduced
+        # with AIX 6.x).
+        ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
 "
 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
   ac_have_decl=1
@@ -31357,7 +31357,7 @@ _ACEOF
 
   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
      if test "x$prefix" = xNONE; then
-       test_prefix=/usr/local
+       test_prefix=/usr/local
      else
        test_prefix=$prefix
      fi
@@ -31403,7 +31403,7 @@ _ACEOF
 
   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
      if test "x$prefix" = xNONE; then
-       test_prefix=/usr/local
+       test_prefix=/usr/local
      else
        test_prefix=$prefix
      fi
@@ -31449,7 +31449,7 @@ _ACEOF
 
   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
      if test "x$prefix" = xNONE; then
-       test_prefix=/usr/local
+       test_prefix=/usr/local
      else
        test_prefix=$prefix
      fi
@@ -31487,9 +31487,9 @@ int
 main ()
 {
 
-                          #if !defined __GNUC__ || defined __clang__
-                          #error not gcc
-                          #endif
+                         #if !defined __GNUC__ || defined __clang__
+                         #error not gcc
+                         #endif
 
   ;
   return 0;
@@ -31509,9 +31509,9 @@ int
 main ()
 {
 
-                          #ifndef __clang__
-                          #error not clang
-                          #endif
+                         #ifndef __clang__
+                         #error not clang
+                         #endif
 
   ;
   return 0;
@@ -31614,9 +31614,9 @@ if test "${enable_build_warnings+set}" = set; then :
   yes) ;;
   no)  build_warnings="-w";;
   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${build_warnings} ${t}";;
+       build_warnings="${build_warnings} ${t}";;
   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${t} ${build_warnings}";;
+       build_warnings="${t} ${build_warnings}";;
   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
 esac
 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
@@ -31629,9 +31629,9 @@ if test "${enable_gdb_build_warnings+set}" = set; then :
   yes) ;;
   no)  build_warnings="-w";;
   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${build_warnings} ${t}";;
+       build_warnings="${build_warnings} ${t}";;
   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${t} ${build_warnings}";;
+       build_warnings="${t} ${build_warnings}";;
   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
 esac
 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
@@ -31661,7 +31661,7 @@ $as_echo_n "checking compiler warning flags... " >&6; }
        case $w in
        -Wno-*)
                wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
-        -Wformat-nonliteral)
+       -Wformat-nonliteral)
                # gcc requires -Wformat before -Wformat-nonliteral
                # will work, so stick them together.
                w="-Wformat $w"
@@ -32576,7 +32576,7 @@ $as_echo "$LIBLZMA" >&6; }
 
     if test "$HAVE_LIBLZMA" != yes; then
       if test "$with_lzma" = yes; then
-        as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
+       as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
       fi
     fi
   fi
@@ -32918,19 +32918,19 @@ $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
 
 
 
-        # Check for in-tree tcl
-        here=`pwd`
-        cd ${srcdir}/..
-        topdir=`pwd`
-        cd ${here}
+       # Check for in-tree tcl
+       here=`pwd`
+       cd ${srcdir}/..
+       topdir=`pwd`
+       cd ${here}
 
-        intree="no"
-        if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
-          intree="yes"
-        fi
+       intree="no"
+       if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
+         intree="yes"
+       fi
 
-        # Find Tcl private headers
-        if test x"${intree}" = xno; then
+       # Find Tcl private headers
+       if test x"${intree}" = xno; then
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
 $as_echo_n "checking for Tcl private headers... " >&6; }
@@ -32949,16 +32949,16 @@ $as_echo "${private_dir}" >&6; }
   fi
 
          TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
-          TCL_LIBRARY="${TCL_LIB_SPEC}"
-          TCL_DEPS=""
-        else
-          # If building tcl in the same src tree, private headers
-          # are not needed, but we need to be sure to use the right
-          # headers library
+         TCL_LIBRARY="${TCL_LIB_SPEC}"
+         TCL_DEPS=""
+       else
+         # If building tcl in the same src tree, private headers
+         # are not needed, but we need to be sure to use the right
+         # headers library
          TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
-          TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
-          TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
-        fi
+         TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
+         TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
+       fi
 
 
 
@@ -33032,14 +33032,14 @@ $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
 
 
 
-        # Check for in-tree Tk
-        intree="no"
-        if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
-          intree="yes"
-        fi
+       # Check for in-tree Tk
+       intree="no"
+       if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
+         intree="yes"
+       fi
 
-        # Find Tk private headers
-        if test x"${intree}" = xno; then
+       # Find Tk private headers
+       if test x"${intree}" = xno; then
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
 $as_echo_n "checking for Tk private headers... " >&6; }
@@ -33059,18 +33059,18 @@ $as_echo "${private_dir}" >&6; }
 
          TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
          TK_LIBRARY=${TK_LIB_SPEC}
-          TK_DEPS=""
-        else
-          TK_INCLUDE="-I${TK_SRC_DIR}/generic"
-          TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
-          TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
-        fi
+         TK_DEPS=""
+       else
+         TK_INCLUDE="-I${TK_SRC_DIR}/generic"
+         TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
+         TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
+       fi
 
 
 
 
 
-        ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
+       ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
 
        # Include some libraries that Tcl and Tk want.
        TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
@@ -33081,9 +33081,9 @@ $as_echo "${private_dir}" >&6; }
        # try to include things like `$(LIBGUI)', which wouldn't work.
        GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
 
-        CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
-        CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
-        CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
+       CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
+       CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
+       CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
        CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
        CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
        CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
@@ -33095,7 +33095,7 @@ $as_echo "${private_dir}" >&6; }
          CONFIG_OBS="${CONFIG_OBS} gdbres.o"
        fi
 
-        subdirs="$subdirs gdbtk"
+       subdirs="$subdirs gdbtk"
 
     fi
 fi
@@ -33914,8 +33914,8 @@ struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
                        pos->type = BT_SEEK_BEGIN;
                        bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
                        scope = bt_ctf_get_top_level_scope (event,
-                                                          BT_STREAM_EVENT_HEADER);
-                       bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
+                                                          BT_STREAM_EVENT_HEADER);
+                       bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
 
   ;
   return 0;
index 70247b00e80d98774f3972955d67a28da3a11926..e1bbfdf6ef4060e3f46c6f24d7a5efd56d57e7ae 100644 (file)
@@ -147,7 +147,7 @@ AC_ARG_WITH(relocated-sources,
 AS_HELP_STRING([--with-relocated-sources=PATH], [automatically relocate this path for source files]),
 [reloc_srcdir="${withval}"
  AC_DEFINE_DIR(RELOC_SRCDIR, reloc_srcdir,
-              [Relocated directory for source files. ])
+             [Relocated directory for source files. ])
 ])
 
 AC_MSG_CHECKING([for default auto-load directory])
@@ -165,7 +165,7 @@ AC_ARG_WITH(auto-load-safe-path,
 AS_HELP_STRING([--with-auto-load-safe-path=PATH],
   [directories safe to hold auto-loaded files @<:@--with-auto-load-dir@:>@])
 AS_HELP_STRING([--without-auto-load-safe-path],
-               [do not restrict auto-loaded files locations]),
+              [do not restrict auto-loaded files locations]),
     [if test "$with_auto_load_safe_path" = "no"; then
      with_auto_load_safe_path="/"
      fi],
@@ -182,7 +182,7 @@ AC_ARG_ENABLE(targets,
 AS_HELP_STRING([--enable-targets=TARGETS], [alternative target configurations]),
 [case "${enableval}" in
   yes | "") AC_MSG_ERROR(enable-targets option must specify target names or 'all')
-            ;;
+           ;;
   no)       enable_targets= ;;
   *)
        enable_targets=$enableval
@@ -197,7 +197,7 @@ AC_ARG_ENABLE(binary_file_formats,
                              available formats: coff, elf, macho, mips, xcoff, all]),
 [case "${enableval}" in
  yes | "") AC_MSG_ERROR(enable-binary-file-formats option must specify file formats or 'all')
-            ;;
+           ;;
   no)       enable_binary_file_formats= ;;
   *)        enable_binary_file_formats=$enableval ;;
 esac], [enable_binary_file_formats=all])
@@ -269,9 +269,9 @@ do
     # Canonicalize the secondary target names.
     result=`$ac_config_sub $targ_alias 2>/dev/null`
     if test -n "$result"; then
-        targ=$result
+       targ=$result
     else
-        targ=$targ_alias
+       targ=$targ_alias
     fi
 
     . ${srcdir}/configure.tgt
@@ -281,12 +281,12 @@ do
 
     # Target-specific object files
     for i in ${gdb_target_obs}; do
-        case " $TARGET_OBS " in
-        *" ${i} "*) ;;
-        *)
-          TARGET_OBS="$TARGET_OBS ${i}"
-          ;;
-        esac
+       case " $TARGET_OBS " in
+       *" ${i} "*) ;;
+       *)
+         TARGET_OBS="$TARGET_OBS ${i}"
+         ;;
+       esac
     done
 
     # Check whether this target needs 64-bit CORE_ADDR
@@ -483,7 +483,7 @@ AC_CACHE_CHECK(
 )
 if test "$ac_cv_var__etext" = yes; then
   AC_DEFINE(HAVE__ETEXT, 1,
-            [Define to 1 if your system has the _etext variable. ])
+           [Define to 1 if your system has the _etext variable. ])
 fi
 AC_CACHE_CHECK(
   [for etext],
@@ -500,7 +500,7 @@ AC_CACHE_CHECK(
 )
 if test "$ac_cv_var_etext" = yes; then
   AC_DEFINE(HAVE_ETEXT, 1,
-            [Define to 1 if your system has the etext variable. ])
+           [Define to 1 if your system has the etext variable. ])
 fi
 if test "$enable_profiling" = yes ; then
   if test "$ac_cv_func_monstartup" = no || test "$ac_cv_func__mcleanup" = no; then
@@ -530,7 +530,7 @@ fi
 CODESIGN_CERT=
 AC_ARG_ENABLE([codesign],
   AS_HELP_STRING([--enable-codesign=CERT],
-                 [sign gdb with 'codesign -s CERT']),
+                [sign gdb with 'codesign -s CERT']),
   [CODESIGN_CERT=$enableval])
 AC_SUBST([CODESIGN_CERT])
 
@@ -599,7 +599,7 @@ AC_ARG_WITH(iconv-bin,
 AS_HELP_STRING([--with-iconv-bin=PATH], [specify where to find the iconv program]),
 [iconv_bin="${withval}"
  AC_DEFINE_UNQUOTED([ICONV_BIN], ["${iconv_bin}"],
-                    [Path of directory of iconv program.])
+                   [Path of directory of iconv program.])
  GDB_AC_DEFINE_RELOCATABLE(ICONV_BIN, iconv, ${iconv_bin})
 ])
 
@@ -618,10 +618,10 @@ if test x"$prefer_curses" = xyes; then
   # default installation of ncurses on alpha*-dec-osf* will lead to such
   # a situation.
   AC_SEARCH_LIBS(waddstr, [ncursesw ncurses cursesX curses],
-                 [curses_found=yes
-                  AC_DEFINE([HAVE_LIBCURSES], [1],
-                            [Define to 1 if curses is enabled.])
-                 ])
+                [curses_found=yes
+                 AC_DEFINE([HAVE_LIBCURSES], [1],
+                           [Define to 1 if curses is enabled.])
+                ])
 fi
 
 # Check whether we should enable the TUI, but only do so if we really
@@ -665,7 +665,7 @@ fi
 
 AC_ARG_WITH([system-readline],
   [AS_HELP_STRING([--with-system-readline],
-                  [use installed readline library])])
+                 [use installed readline library])])
 
 if test "$with_system_readline" = yes; then
   AC_CHECK_HEADERS(readline/readline.h, [readline_h=yes], [readline_h=no])
@@ -734,8 +734,8 @@ AC_CONFIG_FILES([jit-reader.h:jit-reader.in])
 AC_SEARCH_LIBS(dlopen, dl)
 
 GDB_AC_WITH_DIR([JIT_READER_DIR], [jit-reader-dir],
-                [directory to load the JIT readers from],
-                [${libdir}/gdb])
+               [directory to load the JIT readers from],
+               [${libdir}/gdb])
 
 AC_ARG_WITH(expat,
   AS_HELP_STRING([--with-expat], [include expat support (auto/yes/no)]),
@@ -788,16 +788,16 @@ AC_DEFUN([AC_TRY_LIBPYTHON],
   LIBS="$new_LIBS $LIBS"
   found_usable_python=no
   AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "Python.h"]],
-                                 [[
+                                [[
                                    #if PY_VERSION_HEX < 0x03040000
                                    # error "Minimum supported Python version is 3.4"
                                    #endif
                                    Py_Initialize ();
                                 ]])],
-                 [have_libpython_var=yes
-                  found_usable_python=yes
-                  PYTHON_CPPFLAGS=$new_CPPFLAGS
-                  PYTHON_LIBS=$new_LIBS])
+                [have_libpython_var=yes
+                 found_usable_python=yes
+                 PYTHON_CPPFLAGS=$new_CPPFLAGS
+                 PYTHON_LIBS=$new_LIBS])
   CPPFLAGS=$save_CPPFLAGS
   LIBS=$save_LIBS
   AC_MSG_RESULT([${found_usable_python}])
@@ -853,13 +853,13 @@ else
       # ${with_python}.  On Windows/MinGW, this is where the Python
       # executable is.
       if test ! -x "${python_prog}"; then
-        python_prog="${with_python}/python"
-        python_prefix=
+       python_prog="${with_python}/python"
+       python_prefix=
       fi
       if test ! -x "${python_prog}"; then
-        # Fall back to gdb 7.0/7.1 behavior.
-        python_prog=missing
-        python_prefix=${with_python}
+       # Fall back to gdb 7.0/7.1 behavior.
+       python_prog=missing
+       python_prefix=${with_python}
       fi
     elif test -x "${with_python}"; then
       # While we can't run python compiled for $host (unless host == build),
@@ -882,17 +882,17 @@ else
     case "${with_python}" in
     yes | auto)
       if test "${build}" = "${host}"; then
-        # Look first for 'python', then 'python3'.
-        AC_PATH_PROGS(python_prog_path, [python python3], missing)
-        if test "${python_prog_path}" = missing; then
-          python_prog=missing
-        else
-          python_prog=${python_prog_path}
-        fi
+       # Look first for 'python', then 'python3'.
+       AC_PATH_PROGS(python_prog_path, [python python3], missing)
+       if test "${python_prog_path}" = missing; then
+         python_prog=missing
+       else
+         python_prog=${python_prog_path}
+       fi
       else
-        # Not much we can do except assume the cross-compiler will find the
-        # right files.
-        python_prog=missing
+       # Not much we can do except assume the cross-compiler will find the
+       # right files.
+       python_prog=missing
       fi
       ;;
     *)
@@ -951,7 +951,7 @@ else
   have_libpython=no
   if test "${have_python_config}" = yes; then
     AC_TRY_LIBPYTHON(have_libpython,
-                     ${python_includes}, ${python_libs})
+                    ${python_includes}, ${python_libs})
   fi
 
   if test "${have_libpython}" = no; then
@@ -969,7 +969,7 @@ else
   else
     if test -n "${python_prefix}"; then
       AC_DEFINE_UNQUOTED(WITH_PYTHON_PATH, "${python_prefix}",
-                         [Define if --with-python provides a path, either directly or via python-config.py --exec-prefix.])
+                        [Define if --with-python provides a path, either directly or via python-config.py --exec-prefix.])
       GDB_AC_DEFINE_RELOCATABLE(PYTHON_PATH, python, ${python_prefix})
     fi
   fi
@@ -1046,10 +1046,10 @@ if test "${have_libpython}" != no; then
 
   case "$gdb_host" in
     mingw64)
-           if test "${GCC}" = yes; then
-             CPPFLAGS="$CPPFLAGS -DMS_WIN64"
-           fi
-           ;;
+          if test "${GCC}" = yes; then
+            CPPFLAGS="$CPPFLAGS -DMS_WIN64"
+          fi
+          ;;
   esac
 else
   # Even if Python support is not compiled in, we need to have this file
@@ -1139,21 +1139,21 @@ AC_DEFUN([AC_TRY_LIBGUILE],
     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
     LIBS="$LIBS $new_LIBS"
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "libguile.h"]],
-                                   [[scm_init_guile ();]])],
-                   [have_libguile_var=yes
-                    GUILE_CPPFLAGS=$new_CPPFLAGS
-                    GUILE_LIBS=$new_LIBS],
-                   [found_usable_guile=no])
+                                  [[scm_init_guile ();]])],
+                  [have_libguile_var=yes
+                   GUILE_CPPFLAGS=$new_CPPFLAGS
+                   GUILE_LIBS=$new_LIBS],
+                  [found_usable_guile=no])
     dnl scm_set_automatic_finalization_enabled added in Guile 2.2.
     AC_CHECK_FUNC(scm_set_automatic_finalization_enabled,
       AC_DEFINE(HAVE_GUILE_MANUAL_FINALIZATION, 1,
-                [Define if Guile supports manual finalization.])
+               [Define if Guile supports manual finalization.])
     )
     CPPFLAGS=$save_CPPFLAGS
     LIBS=$save_LIBS
     if test "${found_usable_guile}" = no; then
       if test "${flag_errors}" = yes; then
-        AC_MSG_FAILURE([linking guile version ${guile_version} test program failed])
+       AC_MSG_FAILURE([linking guile version ${guile_version} test program failed])
       fi
     fi
   fi
@@ -1328,11 +1328,11 @@ if test "${enable_source_highlight}" != "no"; then
   else
     if ${pkg_config_prog_path} --exists source-highlight; then
       case "$LDFLAGS" in
-        *static-libstdc*)
-          AC_MSG_ERROR([source highlight is incompatible with -static-libstdc++; dnl
+       *static-libstdc*)
+         AC_MSG_ERROR([source highlight is incompatible with -static-libstdc++; dnl
 either use --disable-source-highlight or dnl
 --without-static-standard-libraries])
-          ;;
+         ;;
       esac
 
       srchigh_pkg_cflags=`${pkg_config_prog_path} --cflags source-highlight`
@@ -1353,34 +1353,34 @@ either use --disable-source-highlight or dnl
       CXXFLAGS="$CXXFLAGS $srchigh_pkg_cflags"
       LIBS="$LIBS $srchigh_pkg_libs"
       AC_LINK_IFELSE(
-        [AC_LANG_PROGRAM(
-          [#include <srchilite/sourcehighlight.h>],
-          [std::string outlang = "esc.outlang";
-           new srchilite::SourceHighlight (outlang);]
-        )],
-        [have_usable_source_highlight=yes],
-        [have_usable_source_highlight=no]
+       [AC_LANG_PROGRAM(
+         [#include <srchilite/sourcehighlight.h>],
+         [std::string outlang = "esc.outlang";
+          new srchilite::SourceHighlight (outlang);]
+       )],
+       [have_usable_source_highlight=yes],
+       [have_usable_source_highlight=no]
       )
       CXXFLAGS="$save_CXXFLAGS"
       LIBS="$save_LIBS"
       AC_LANG_POP(C++)
 
       if test "${have_usable_source_highlight}" = "yes"; then
-        AC_DEFINE([HAVE_SOURCE_HIGHLIGHT], 1,
-                  [Define to 1 if the source-highlight library is available])
-        AC_MSG_RESULT([yes])
-        SRCHIGH_CFLAGS="$srchigh_pkg_cflags"
-        SRCHIGH_LIBS="$srchigh_pkg_libs"
+       AC_DEFINE([HAVE_SOURCE_HIGHLIGHT], 1,
+                 [Define to 1 if the source-highlight library is available])
+       AC_MSG_RESULT([yes])
+       SRCHIGH_CFLAGS="$srchigh_pkg_cflags"
+       SRCHIGH_LIBS="$srchigh_pkg_libs"
       else
-        AC_MSG_RESULT([no])
-        if test "${enable_source_highlight}" = "yes"; then
-          AC_MSG_ERROR([source-highlight in your system could not be used])
-        fi
+       AC_MSG_RESULT([no])
+       if test "${enable_source_highlight}" = "yes"; then
+         AC_MSG_ERROR([source-highlight in your system could not be used])
+       fi
       fi
     else
       AC_MSG_RESULT([no])
       if test "${enable_source_highlight}" = "yes"; then
-        AC_MSG_ERROR([source-highlight was not found in your system])
+       AC_MSG_ERROR([source-highlight was not found in your system])
       fi
     fi
   fi
@@ -1545,7 +1545,7 @@ AC_CACHE_CHECK(
 )
 if test "$gdb_cv_struct_lwp" = yes; then
   AC_DEFINE(HAVE_STRUCT_LWP, 1,
-            [Define to 1 if your system has struct lwp.])
+           [Define to 1 if your system has struct lwp.])
 fi
 
 # See if <machine/reg.h> degines `struct reg'.
@@ -1564,13 +1564,13 @@ AC_CACHE_CHECK(
 )
 if test "$gdb_cv_struct_reg" = yes; then
   AC_DEFINE(HAVE_STRUCT_REG, 1,
-            [Define to 1 if your system has struct reg in <machine/reg.h>.])
+           [Define to 1 if your system has struct reg in <machine/reg.h>.])
 fi
 
 # 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'.
 AC_CHECK_MEMBERS([struct reg.r_fs, struct reg.r_gs], [], [],
-                 [#include <sys/types.h>
+                [#include <sys/types.h>
 #include <machine/reg.h>])
 
 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
@@ -1629,22 +1629,22 @@ fi
 # Older FreeBSD versions don't have the pl_tdname member of
 # `struct ptrace_lwpinfo'.
 AC_CHECK_MEMBERS([struct ptrace_lwpinfo.pl_tdname], [], [],
-                 [#include <sys/ptrace.h>])
+                [#include <sys/ptrace.h>])
 
 # See if <sys/ptrace.h> supports syscall fields on FreeBSD.  The
 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
 # FreeBSD 10.3.
 AC_CHECK_MEMBERS([struct ptrace_lwpinfo.pl_syscall_code], [], [],
-                 [#include <sys/ptrace.h>])
+                [#include <sys/ptrace.h>])
 
 # Check if the compiler supports the `long long' type.
 
 AC_CACHE_CHECK([for long long support in compiler], gdb_cv_c_long_long,
-               [AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+              [AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
 [[extern long long foo;]],
 [[switch (foo & 2) { case 0: return 1; }]])],
-                                  gdb_cv_c_long_long=yes,
-                                  gdb_cv_c_long_long=no)])
+                                 gdb_cv_c_long_long=yes,
+                                 gdb_cv_c_long_long=no)])
 if test "$gdb_cv_c_long_long" != yes; then
   # libdecnumber requires long long.
   AC_MSG_ERROR([Compiler must support long long for GDB.])
@@ -1653,20 +1653,20 @@ fi
 # Check if the compiler and runtime support printing decfloats.
 
 AC_CACHE_CHECK([for decfloat support in printf],
-               gdb_cv_printf_has_decfloat,
-               [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
+              gdb_cv_printf_has_decfloat,
+              [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
 [[char buf[64];
   _Decimal32 d32 = 1.2345df;
   _Decimal64 d64 = 1.2345dd;
   _Decimal128 d128 = 1.2345dl;
   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));]])],
-                              gdb_cv_printf_has_decfloat=yes,
-                              gdb_cv_printf_has_decfloat=no,
-                              gdb_cv_printf_has_decfloat=no)])
+                             gdb_cv_printf_has_decfloat=yes,
+                             gdb_cv_printf_has_decfloat=no,
+                             gdb_cv_printf_has_decfloat=no)])
 if test "$gdb_cv_printf_has_decfloat" = yes; then
   AC_DEFINE(PRINTF_HAS_DECFLOAT, 1,
-            [Define to 1 if the "%H, %D and %DD" formats work to print decfloats.])
+           [Define to 1 if the "%H, %D and %DD" formats work to print decfloats.])
 fi
 
 # Check if the compiler supports the `long double' type.  We can't use
@@ -1675,47 +1675,47 @@ fi
 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
 
 AC_CACHE_CHECK([for long double support in compiler], gdb_cv_c_long_double,
-               [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[long double foo;]])],
-                                  gdb_cv_c_long_double=yes,
-                                  gdb_cv_c_long_double=no)])
+              [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[long double foo;]])],
+                                 gdb_cv_c_long_double=yes,
+                                 gdb_cv_c_long_double=no)])
 if test "$gdb_cv_c_long_double" = yes; then
   AC_DEFINE(HAVE_LONG_DOUBLE, 1,
-           [Define to 1 if the compiler supports long double.])
+          [Define to 1 if the compiler supports long double.])
 fi
 
 # Check if the compiler and runtime support printing long doubles.
 
 AC_CACHE_CHECK([for long double support in printf],
-               gdb_cv_printf_has_long_double,
-               [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
+              gdb_cv_printf_has_long_double,
+              [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
 [[char buf[16];
   long double f = 3.141592653;
   sprintf (buf, "%Lg", f);
   return (strncmp ("3.14159", buf, 7));]])],
-                              gdb_cv_printf_has_long_double=yes,
-                              gdb_cv_printf_has_long_double=no,
-                              gdb_cv_printf_has_long_double=no)])
+                             gdb_cv_printf_has_long_double=yes,
+                             gdb_cv_printf_has_long_double=no,
+                             gdb_cv_printf_has_long_double=no)])
 if test "$gdb_cv_printf_has_long_double" = yes; then
   AC_DEFINE(PRINTF_HAS_LONG_DOUBLE, 1,
-            [Define to 1 if the "%Lg" format works to print long doubles.])
+           [Define to 1 if the "%Lg" format works to print long doubles.])
 fi
 
 # Check if the compiler and runtime support scanning long doubles.
 
 AC_CACHE_CHECK([for long double support in scanf],
-               gdb_cv_scanf_has_long_double,
-               [AC_RUN_IFELSE([AC_LANG_PROGRAM(
+              gdb_cv_scanf_has_long_double,
+              [AC_RUN_IFELSE([AC_LANG_PROGRAM(
 [[#include <stdio.h>]],
 [[char *buf = "3.141592653";
   long double f = 0;
   sscanf (buf, "%Lg", &f);
   return !(f > 3.14159 && f < 3.14160);]])],
-                              gdb_cv_scanf_has_long_double=yes,
-                              gdb_cv_scanf_has_long_double=no,
-                              gdb_cv_scanf_has_long_double=no)])
+                             gdb_cv_scanf_has_long_double=yes,
+                             gdb_cv_scanf_has_long_double=no,
+                             gdb_cv_scanf_has_long_double=no)])
 if test "$gdb_cv_scanf_has_long_double" = yes; then
   AC_DEFINE(SCANF_HAS_LONG_DOUBLE, 1,
-            [Define to 1 if the "%Lg" format works to scan long doubles.])
+           [Define to 1 if the "%Lg" format works to scan long doubles.])
 fi
 
 case ${host_os} in
@@ -1776,19 +1776,19 @@ if test "${gdb_native}" = yes; then
      CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
      AC_RUN_IFELSE(
        [AC_LANG_PROGRAM(
-         [#include "Python.h"],
-         [
-          const char *code = "import ctypes\n";
-          Py_Initialize ();
-          PyObject *main_module = PyImport_AddModule ("__main__");
-          PyObject *global_dict = PyModule_GetDict (main_module);
-          PyObject *local_dict = PyDict_New ();
-          PyObject *py_code = Py_CompileString (code, "test", Py_single_input);
-          if (py_code == NULL)
-            return 1;
-          PyObject *res = PyEval_EvalCode (py_code, global_dict, local_dict);
-          Py_Finalize ();
-          return res ? 0 : 1;])],
+        [#include "Python.h"],
+        [
+         const char *code = "import ctypes\n";
+         Py_Initialize ();
+         PyObject *main_module = PyImport_AddModule ("__main__");
+         PyObject *global_dict = PyModule_GetDict (main_module);
+         PyObject *local_dict = PyDict_New ();
+         PyObject *py_code = Py_CompileString (code, "test", Py_single_input);
+         if (py_code == NULL)
+           return 1;
+         PyObject *res = PyEval_EvalCode (py_code, global_dict, local_dict);
+         Py_Finalize ();
+         return res ? 0 : 1;])],
        [dynamic_list=true], [], [true])
      LIBS="$old_LIBS"
      CFLAGS="$old_CFLAGS"
@@ -1811,20 +1811,20 @@ AC_CACHE_CHECK(
   gdb_cv_execinfo_backtrace,
   [AC_LINK_IFELSE(
      [AC_LANG_PROGRAM(
-        [
-         #include <execinfo.h>
-        ],
-        [
-         int f;
-         void *b[[2]];
-         f = backtrace (b, 2);
-         backtrace_symbols_fd (b, f, 2);
-        ])],
+       [
+        #include <execinfo.h>
+       ],
+       [
+        int f;
+        void *b[[2]];
+        f = backtrace (b, 2);
+        backtrace_symbols_fd (b, f, 2);
+       ])],
    [gdb_cv_execinfo_backtrace=yes],
    [gdb_cv_execinfo_backtrace=no])])
 if test "$gdb_cv_execinfo_backtrace" = yes; then
   AC_DEFINE(HAVE_EXECINFO_BACKTRACE, 1,
-            [Define to 1 if execinfo.h backtrace functions are available.])
+           [Define to 1 if execinfo.h backtrace functions are available.])
 fi
 
 dnl For certain native configurations, we need to check whether thread
@@ -1852,14 +1852,14 @@ if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
       )
       AC_MSG_RESULT($gdb_cv_have_aix_thread_debug)
       if test "$gdb_cv_have_aix_thread_debug" = yes; then
-         CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
-         CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
-         LIBS="$LIBS -lpthdebug"
-
-         # Older versions of AIX do not provide the declaration for
-         # the getthrds function (it appears that it was introduced
-         # with AIX 6.x).
-         AC_CHECK_DECLS(getthrds, [], [], [[#include <procinfo.h>]])
+        CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
+        CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
+        LIBS="$LIBS -lpthdebug"
+
+        # Older versions of AIX do not provide the declaration for
+        # the getthrds function (it appears that it was introduced
+        # with AIX 6.x).
+        AC_CHECK_DECLS(getthrds, [], [], [[#include <procinfo.h>]])
       fi
       ;;
    esac
@@ -1910,15 +1910,15 @@ if test "x$ac_cv_header_thread_db_h" = "xyes"; then
 fi
 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
   AC_DEFINE(THREAD_DB_HAS_TD_NOTALLOC, 1,
-            [Define if <thread_db.h> has the TD_NOTALLOC error code.])
+           [Define if <thread_db.h> has the TD_NOTALLOC error code.])
 fi
 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
   AC_DEFINE(THREAD_DB_HAS_TD_VERSION, 1,
-            [Define if <thread_db.h> has the TD_VERSION error code.])
+           [Define if <thread_db.h> has the TD_VERSION error code.])
 fi
 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
   AC_DEFINE(THREAD_DB_HAS_TD_NOTLS, 1,
-            [Define if <thread_db.h> has the TD_NOTLS error code.])
+           [Define if <thread_db.h> has the TD_NOTLS error code.])
 fi
 
 dnl Set the host's .gdbinit filename.
@@ -1945,10 +1945,10 @@ if test "x$with_sysroot" = xyes; then
 fi
 AC_ARG_WITH(sysroot,
   AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
-                 [search for usr/lib et al within DIR]),
+                [search for usr/lib et al within DIR]),
   [TARGET_SYSTEM_ROOT=$withval], [TARGET_SYSTEM_ROOT=])
 AC_DEFINE_DIR(TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT,
-              [search for usr/lib et al within DIR])
+             [search for usr/lib et al within DIR])
 AC_SUBST(TARGET_SYSTEM_ROOT)
 GDB_AC_DEFINE_RELOCATABLE(TARGET_SYSTEM_ROOT, sysroot, ${ac_define_dir})
 
@@ -2003,7 +2003,7 @@ all_binary_file_srcs="\$(mips_SRCS) \$(coff_SRCS) \$(xcoff_SRCS)"
 bfd_supports_elf=no
 # Add ELF support to GDB, but only if BFD includes ELF support.
 GDB_AC_CHECK_BFD([for ELF support in BFD], gdb_cv_var_bfd_elf,
-                 [bfd_get_elf_phdr_upper_bound (NULL)], elf-bfd.h)
+                [bfd_get_elf_phdr_upper_bound (NULL)], elf-bfd.h)
 if test "$gdb_cv_var_bfd_elf" = yes; then
   CONFIG_OBS="$CONFIG_OBS gcore-elf.o elf-none-tdep.o"
   AC_DEFINE(HAVE_ELF, 1,
@@ -2019,7 +2019,7 @@ fi
 # Add macho support to GDB, but only if BFD includes it.
 bfd_supports_macho=no
 GDB_AC_CHECK_BFD([for Mach-O support in BFD], gdb_cv_var_bfd_macho,
-                 [bfd_mach_o_lookup_command (NULL, 0, NULL)], mach-o.h)
+                [bfd_mach_o_lookup_command (NULL, 0, NULL)], mach-o.h)
 if test "$gdb_cv_var_bfd_macho" = yes; then
   bfd_supports_macho=yes
   all_binary_file_srcs="$all_binary_file_srcs \$(macho_SRCS)"
@@ -2089,7 +2089,7 @@ if test "$gdb_cv_var_bfd_elf" = yes; then
                           lzma_mf_is_supported (LZMA_MF_HC3);])
     if test "$HAVE_LIBLZMA" != yes; then
       if test "$with_lzma" = yes; then
-        AC_MSG_ERROR([missing liblzma for --with-lzma])
+       AC_MSG_ERROR([missing liblzma for --with-lzma])
       fi
     fi
   fi
@@ -2132,60 +2132,60 @@ if test "${enable_gdbtk}" = "yes"; then
     if test -z "${no_tcl}" -a -z "${no_tk}"; then
        SC_LOAD_TCLCONFIG
 
-        # Check for in-tree tcl
-        here=`pwd`
-        cd ${srcdir}/..
-        topdir=`pwd`
-        cd ${here}
+       # Check for in-tree tcl
+       here=`pwd`
+       cd ${srcdir}/..
+       topdir=`pwd`
+       cd ${here}
 
-        intree="no"
-        if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
-          intree="yes"
-        fi
+       intree="no"
+       if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
+         intree="yes"
+       fi
 
-        # Find Tcl private headers
-        if test x"${intree}" = xno; then
-          CY_AC_TCL_PRIVATE_HEADERS
+       # Find Tcl private headers
+       if test x"${intree}" = xno; then
+         CY_AC_TCL_PRIVATE_HEADERS
          TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
-          TCL_LIBRARY="${TCL_LIB_SPEC}"
-          TCL_DEPS=""
-        else
-          # If building tcl in the same src tree, private headers
-          # are not needed, but we need to be sure to use the right
-          # headers library
+         TCL_LIBRARY="${TCL_LIB_SPEC}"
+         TCL_DEPS=""
+       else
+         # If building tcl in the same src tree, private headers
+         # are not needed, but we need to be sure to use the right
+         # headers library
          TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
-          TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
-          TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
-        fi
+         TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
+         TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
+       fi
        AC_SUBST(TCL_INCLUDE)
        AC_SUBST(TCL_LIBRARY)
-        AC_SUBST(TCL_DEPS)
+       AC_SUBST(TCL_DEPS)
 
        SC_LOAD_TKCONFIG
 
-        # Check for in-tree Tk
-        intree="no"
-        if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
-          intree="yes"
-        fi
+       # Check for in-tree Tk
+       intree="no"
+       if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
+         intree="yes"
+       fi
 
-        # Find Tk private headers
-        if test x"${intree}" = xno; then
-          CY_AC_TK_PRIVATE_HEADERS
+       # Find Tk private headers
+       if test x"${intree}" = xno; then
+         CY_AC_TK_PRIVATE_HEADERS
          TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
          TK_LIBRARY=${TK_LIB_SPEC}
-          TK_DEPS=""
-        else
-          TK_INCLUDE="-I${TK_SRC_DIR}/generic"
-          TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
-          TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
-        fi
+         TK_DEPS=""
+       else
+         TK_INCLUDE="-I${TK_SRC_DIR}/generic"
+         TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
+         TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
+       fi
        AC_SUBST(TK_INCLUDE)
        AC_SUBST(TK_LIBRARY)
        AC_SUBST(TK_DEPS)
        AC_SUBST(TK_XINCLUDES)
 
-        ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
+       ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
 
        # Include some libraries that Tcl and Tk want.
        TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
@@ -2196,9 +2196,9 @@ if test "${enable_gdbtk}" = "yes"; then
        # try to include things like `$(LIBGUI)', which wouldn't work.
        GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
 
-        CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
-        CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
-        CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
+       CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
+       CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
+       CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
        CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
        CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
        CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
@@ -2210,7 +2210,7 @@ if test "${enable_gdbtk}" = "yes"; then
          CONFIG_OBS="${CONFIG_OBS} gdbres.o"
        fi
 
-        AC_CONFIG_SUBDIRS(gdbtk)
+       AC_CONFIG_SUBDIRS(gdbtk)
     fi
 fi
 
@@ -2357,8 +2357,8 @@ else
                        pos->type = BT_SEEK_BEGIN;
                        bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
                        scope = bt_ctf_get_top_level_scope (event,
-                                                          BT_STREAM_EVENT_HEADER);
-                       bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
+                                                          BT_STREAM_EVENT_HEADER);
+                       bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
                        ])
   CFLAGS=$saved_CFLAGS
 
@@ -2394,7 +2394,7 @@ if test "${nativefile}" != ""; then
       * ) GDB_NM_FILE="${nativefile}"
     esac
     AC_CONFIG_LINKS([nm.h:$GDB_NM_FILE], [echo > stamp-nmh],
-                    [GDB_NM_FILE=$GDB_NM_FILE])
+                   [GDB_NM_FILE=$GDB_NM_FILE])
     AC_DEFINE_UNQUOTED(GDB_NM_FILE, "${GDB_NM_FILE}", [nativefile])
     NM_H=nm.h
 fi
@@ -2416,7 +2416,7 @@ AC_EXEEXT
 dnl  Detect the character set used by this host.
 dnl  At the moment, we just assume it's UTF-8.
 AC_DEFINE(GDB_DEFAULT_HOST_CHARSET, "UTF-8",
-          [Define to be a string naming the default host character set.])
+         [Define to be a string naming the default host character set.])
 
 GDB_AC_SELFTEST([
   CONFIG_OBS="$CONFIG_OBS \$(SELFTESTS_OBS)"
index 71624e9cb37c858c7416f12bd31b1b7314bb130e..e929b8deae6b4f26ea5da65a18c8240b91ab98bc 100644 (file)
@@ -19,7 +19,7 @@ dnl along with this program.  If not, see <http://www.gnu.org/licenses/>.
 AC_DEFUN([AM_GDB_UBSAN],[
 AC_ARG_ENABLE(ubsan,
   AS_HELP_STRING([--enable-ubsan],
-                 [enable undefined behavior sanitizer (auto/yes/no)]),
+                [enable undefined behavior sanitizer (auto/yes/no)]),
   [],enable_ubsan=no)
 if test "x$enable_ubsan" = xauto; then
   if $development; then
index 3b0d4ed8ad352b9859c728746134e4d35120e497..c8be80b0725ef6027aa0622dbc914c1612521531 100755 (executable)
@@ -2230,7 +2230,7 @@ else
   case $host_os in
     aix*)
       if test $host_cpu != ia64; then
-        RPATH_ENVVAR=LIBPATH
+       RPATH_ENVVAR=LIBPATH
       fi ;;
     darwin* | rhapsody*)
       RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
index 560d7d9cd6613819a0b790110360bda0bcf044bc..742f2fe73b6520932c6f00ad878e85e26f87593e 100644 (file)
@@ -65,7 +65,7 @@ else
   case $host_os in
     aix*)
       if test $host_cpu != ia64; then
-        RPATH_ENVVAR=LIBPATH
+       RPATH_ENVVAR=LIBPATH
       fi ;;
     darwin* | rhapsody*)
       RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
index 5a00c6e9878bd5e3effa849685a49b15867deec0..9b1cf85a69970f92312db5d37a5da96da52e412c 100644 (file)
@@ -45,7 +45,7 @@ AC_DEFUN(
    AC_CACHE_VAL(
      [gdbserver_cv_have_thread_db_type_$1],
      [AC_COMPILE_IFELSE(
-        [AC_LANG_PROGRAM([#include <thread_db.h>], [$1 avar])],
+       [AC_LANG_PROGRAM([#include <thread_db.h>], [$1 avar])],
        [gdbserver_cv_have_thread_db_type_$1=yes],
        [gdbserver_cv_have_thread_db_type_$1=no]
       )]
index 1554296172e9059e2d11df80f84c8a4a60689969..0159da6bdf47f4367417d49526c3822bd6a8ee11 100755 (executable)
@@ -5252,10 +5252,10 @@ namespace cxx11
       auto c = [=](){ return a + b; }();
       auto d = [&](){ return c; }();
       auto e = [a, &b](int x) mutable {
-        const auto identity = [](int y){ return y; };
-        for (auto i = 0; i < a; ++i)
-          a += b--;
-        return x + identity(a + b);
+       const auto identity = [](int y){ return y; };
+       for (auto i = 0; i < a; ++i)
+         a += b--;
+       return x + identity(a + b);
       }(0);
       return a + b + c + d + e;
     }
@@ -5269,7 +5269,7 @@ namespace cxx11
       using unary_t = decltype(unary);
       const auto higher1st = [](nullary_t f){ return f(); };
       const auto higher2nd = [unary](nullary_t f1){
-        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
+       return [unary, f1](unary_t f2){ return f2(unary(f1())); };
       };
       return higher1st(nullary) + higher2nd(nullary)(unary);
     }
@@ -5356,11 +5356,11 @@ namespace cxx14
     test()
     {
       const auto lambda = [](auto&&... args){
-        const auto istiny = [](auto x){
-          return (sizeof(x) == 1UL) ? 1 : 0;
-        };
-        const int aretiny[] = { istiny(args)... };
-        return aretiny[0];
+       const auto istiny = [](auto x){
+         return (sizeof(x) == 1UL) ? 1 : 0;
+       };
+       const int aretiny[] = { istiny(args)... };
+       return aretiny[0];
       };
       return lambda(1, 1L, 1.0f, '1');
     }
@@ -5384,7 +5384,7 @@ namespace cxx14
     {
       auto length = 0UL;
       for (auto p = s; *p; ++p)
-        ++length;
+       ++length;
       return length;
     }
 
@@ -5541,10 +5541,10 @@ namespace cxx17
       switch (f1())
       {
       case 17:
-        f1();
-        [[fallthrough]];
+       f1();
+       [[fallthrough]];
       case 42:
-        f1();
+       f1();
       }
       return f1();
     }
@@ -5562,14 +5562,14 @@ namespace cxx17
     struct base2
     {
       base2() {
-        b3 = 42;
+       b3 = 42;
       }
       int b3;
     };
 
     struct derived : base1, base2
     {
-        int d;
+       int d;
     };
 
     derived d1 {{1, 2}, {}, 4};  // full initialization
@@ -5586,18 +5586,18 @@ namespace cxx17
 
       int& operator* ()
       {
-        return i;
+       return i;
       }
 
       const int& operator* () const
       {
-        return i;
+       return i;
       }
 
       iter& operator++()
       {
-        ++i;
-        return *this;
+       ++i;
+       return *this;
       }
     };
 
@@ -5620,12 +5620,12 @@ namespace cxx17
     {
       iter begin() const
       {
-        return {0};
+       return {0};
       }
 
       sentinel end() const
       {
-        return {5};
+       return {5};
       }
     };
 
@@ -5635,7 +5635,7 @@ namespace cxx17
 
       for (auto i : r)
       {
-        [[maybe_unused]] auto v = i;
+       [[maybe_unused]] auto v = i;
       }
     }
 
@@ -5649,10 +5649,10 @@ namespace cxx17
       int i;
       int foo()
       {
-        return [*this]()
-        {
-          return i;
-        }();
+       return [*this]()
+       {
+         return i;
+       }();
       }
     };
 
@@ -5676,11 +5676,11 @@ namespace cxx17
     {
       if constexpr(cond)
       {
-        return 13;
+       return 13;
       }
       else
       {
-        return 42;
+       return 42;
       }
     }
 
@@ -5698,16 +5698,16 @@ namespace cxx17
     {
       if (auto i = f(); i > 0)
       {
-        return 3;
+       return 3;
       }
 
       switch (auto i = f(); i + 4)
       {
       case 17:
-        return 2;
+       return 2;
 
       default:
-        return 1;
+       return 1;
       }
     }
 
@@ -5720,8 +5720,8 @@ namespace cxx17
     struct pair
     {
       pair (T1 p1, T2 p2)
-        : m1 {p1},
-          m2 {p2}
+       : m1 {p1},
+         m2 {p2}
       {}
 
       T1 m1;
@@ -5854,8 +5854,8 @@ if eval \${$cachevar+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_save_CXX="$CXX"
-         CXX="$CXX $switch"
-         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+        CXX="$CXX $switch"
+        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
 
@@ -6069,10 +6069,10 @@ namespace cxx11
       auto c = [=](){ return a + b; }();
       auto d = [&](){ return c; }();
       auto e = [a, &b](int x) mutable {
-        const auto identity = [](int y){ return y; };
-        for (auto i = 0; i < a; ++i)
-          a += b--;
-        return x + identity(a + b);
+       const auto identity = [](int y){ return y; };
+       for (auto i = 0; i < a; ++i)
+         a += b--;
+       return x + identity(a + b);
       }(0);
       return a + b + c + d + e;
     }
@@ -6086,7 +6086,7 @@ namespace cxx11
       using unary_t = decltype(unary);
       const auto higher1st = [](nullary_t f){ return f(); };
       const auto higher2nd = [unary](nullary_t f1){
-        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
+       return [unary, f1](unary_t f2){ return f2(unary(f1())); };
       };
       return higher1st(nullary) + higher2nd(nullary)(unary);
     }
@@ -6173,11 +6173,11 @@ namespace cxx14
     test()
     {
       const auto lambda = [](auto&&... args){
-        const auto istiny = [](auto x){
-          return (sizeof(x) == 1UL) ? 1 : 0;
-        };
-        const int aretiny[] = { istiny(args)... };
-        return aretiny[0];
+       const auto istiny = [](auto x){
+         return (sizeof(x) == 1UL) ? 1 : 0;
+       };
+       const int aretiny[] = { istiny(args)... };
+       return aretiny[0];
       };
       return lambda(1, 1L, 1.0f, '1');
     }
@@ -6201,7 +6201,7 @@ namespace cxx14
     {
       auto length = 0UL;
       for (auto p = s; *p; ++p)
-        ++length;
+       ++length;
       return length;
     }
 
@@ -6358,10 +6358,10 @@ namespace cxx17
       switch (f1())
       {
       case 17:
-        f1();
-        [[fallthrough]];
+       f1();
+       [[fallthrough]];
       case 42:
-        f1();
+       f1();
       }
       return f1();
     }
@@ -6379,14 +6379,14 @@ namespace cxx17
     struct base2
     {
       base2() {
-        b3 = 42;
+       b3 = 42;
       }
       int b3;
     };
 
     struct derived : base1, base2
     {
-        int d;
+       int d;
     };
 
     derived d1 {{1, 2}, {}, 4};  // full initialization
@@ -6403,18 +6403,18 @@ namespace cxx17
 
       int& operator* ()
       {
-        return i;
+       return i;
       }
 
       const int& operator* () const
       {
-        return i;
+       return i;
       }
 
       iter& operator++()
       {
-        ++i;
-        return *this;
+       ++i;
+       return *this;
       }
     };
 
@@ -6437,12 +6437,12 @@ namespace cxx17
     {
       iter begin() const
       {
-        return {0};
+       return {0};
       }
 
       sentinel end() const
       {
-        return {5};
+       return {5};
       }
     };
 
@@ -6452,7 +6452,7 @@ namespace cxx17
 
       for (auto i : r)
       {
-        [[maybe_unused]] auto v = i;
+       [[maybe_unused]] auto v = i;
       }
     }
 
@@ -6466,10 +6466,10 @@ namespace cxx17
       int i;
       int foo()
       {
-        return [*this]()
-        {
-          return i;
-        }();
+       return [*this]()
+       {
+         return i;
+       }();
       }
     };
 
@@ -6493,11 +6493,11 @@ namespace cxx17
     {
       if constexpr(cond)
       {
-        return 13;
+       return 13;
       }
       else
       {
-        return 42;
+       return 42;
       }
     }
 
@@ -6515,16 +6515,16 @@ namespace cxx17
     {
       if (auto i = f(); i > 0)
       {
-        return 3;
+       return 3;
       }
 
       switch (auto i = f(); i + 4)
       {
       case 17:
-        return 2;
+       return 2;
 
       default:
-        return 1;
+       return 1;
       }
     }
 
@@ -6537,8 +6537,8 @@ namespace cxx17
     struct pair
     {
       pair (T1 p1, T2 p2)
-        : m1 {p1},
-          m2 {p2}
+       : m1 {p1},
+         m2 {p2}
       {}
 
       T1 m1;
@@ -6654,19 +6654,19 @@ else
   eval $cachevar=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-         CXX="$ac_save_CXX"
+        CXX="$ac_save_CXX"
 fi
 eval ac_res=\$$cachevar
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 $as_echo "$ac_res" >&6; }
       if eval test x\$$cachevar = xyes; then
-        CXX_DIALECT="$switch"
-        CXX="$CXX $switch"
-        if test -n "$CXXCPP" ; then
-          CXXCPP="$CXXCPP $switch"
-        fi
-        ac_success=yes
-        break
+       CXX_DIALECT="$switch"
+       CXX="$CXX $switch"
+       if test -n "$CXXCPP" ; then
+         CXXCPP="$CXXCPP $switch"
+       fi
+       ac_success=yes
+       break
       fi
     done
   fi
@@ -6674,20 +6674,20 @@ $as_echo "$ac_res" >&6; }
     if test x$ac_success = xno; then
                     for alternative in ${ax_cxx_compile_alternatives}; do
       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
-        if test x"$switch" = xMSVC; then
-                                        switch=-std:c++${alternative}
-          cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | $as_tr_sh`
-        else
-          cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
-        fi
-        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
+       if test x"$switch" = xMSVC; then
+                                 switch=-std:c++${alternative}
+         cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | $as_tr_sh`
+       else
+         cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
+       fi
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
 if eval \${$cachevar+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_save_CXX="$CXX"
-           CXX="$CXX $switch"
-           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+          CXX="$CXX $switch"
+          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
 
@@ -6901,10 +6901,10 @@ namespace cxx11
       auto c = [=](){ return a + b; }();
       auto d = [&](){ return c; }();
       auto e = [a, &b](int x) mutable {
-        const auto identity = [](int y){ return y; };
-        for (auto i = 0; i < a; ++i)
-          a += b--;
-        return x + identity(a + b);
+       const auto identity = [](int y){ return y; };
+       for (auto i = 0; i < a; ++i)
+         a += b--;
+       return x + identity(a + b);
       }(0);
       return a + b + c + d + e;
     }
@@ -6918,7 +6918,7 @@ namespace cxx11
       using unary_t = decltype(unary);
       const auto higher1st = [](nullary_t f){ return f(); };
       const auto higher2nd = [unary](nullary_t f1){
-        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
+       return [unary, f1](unary_t f2){ return f2(unary(f1())); };
       };
       return higher1st(nullary) + higher2nd(nullary)(unary);
     }
@@ -7005,11 +7005,11 @@ namespace cxx14
     test()
     {
       const auto lambda = [](auto&&... args){
-        const auto istiny = [](auto x){
-          return (sizeof(x) == 1UL) ? 1 : 0;
-        };
-        const int aretiny[] = { istiny(args)... };
-        return aretiny[0];
+       const auto istiny = [](auto x){
+         return (sizeof(x) == 1UL) ? 1 : 0;
+       };
+       const int aretiny[] = { istiny(args)... };
+       return aretiny[0];
       };
       return lambda(1, 1L, 1.0f, '1');
     }
@@ -7033,7 +7033,7 @@ namespace cxx14
     {
       auto length = 0UL;
       for (auto p = s; *p; ++p)
-        ++length;
+       ++length;
       return length;
     }
 
@@ -7190,10 +7190,10 @@ namespace cxx17
       switch (f1())
       {
       case 17:
-        f1();
-        [[fallthrough]];
+       f1();
+       [[fallthrough]];
       case 42:
-        f1();
+       f1();
       }
       return f1();
     }
@@ -7211,14 +7211,14 @@ namespace cxx17
     struct base2
     {
       base2() {
-        b3 = 42;
+       b3 = 42;
       }
       int b3;
     };
 
     struct derived : base1, base2
     {
-        int d;
+       int d;
     };
 
     derived d1 {{1, 2}, {}, 4};  // full initialization
@@ -7235,18 +7235,18 @@ namespace cxx17
 
       int& operator* ()
       {
-        return i;
+       return i;
       }
 
       const int& operator* () const
       {
-        return i;
+       return i;
       }
 
       iter& operator++()
       {
-        ++i;
-        return *this;
+       ++i;
+       return *this;
       }
     };
 
@@ -7269,12 +7269,12 @@ namespace cxx17
     {
       iter begin() const
       {
-        return {0};
+       return {0};
       }
 
       sentinel end() const
       {
-        return {5};
+       return {5};
       }
     };
 
@@ -7284,7 +7284,7 @@ namespace cxx17
 
       for (auto i : r)
       {
-        [[maybe_unused]] auto v = i;
+       [[maybe_unused]] auto v = i;
       }
     }
 
@@ -7298,10 +7298,10 @@ namespace cxx17
       int i;
       int foo()
       {
-        return [*this]()
-        {
-          return i;
-        }();
+       return [*this]()
+       {
+         return i;
+       }();
       }
     };
 
@@ -7325,11 +7325,11 @@ namespace cxx17
     {
       if constexpr(cond)
       {
-        return 13;
+       return 13;
       }
       else
       {
-        return 42;
+       return 42;
       }
     }
 
@@ -7347,16 +7347,16 @@ namespace cxx17
     {
       if (auto i = f(); i > 0)
       {
-        return 3;
+       return 3;
       }
 
       switch (auto i = f(); i + 4)
       {
       case 17:
-        return 2;
+       return 2;
 
       default:
-        return 1;
+       return 1;
       }
     }
 
@@ -7369,8 +7369,8 @@ namespace cxx17
     struct pair
     {
       pair (T1 p1, T2 p2)
-        : m1 {p1},
-          m2 {p2}
+       : m1 {p1},
+         m2 {p2}
       {}
 
       T1 m1;
@@ -7486,23 +7486,23 @@ else
   eval $cachevar=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-           CXX="$ac_save_CXX"
+          CXX="$ac_save_CXX"
 fi
 eval ac_res=\$$cachevar
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 $as_echo "$ac_res" >&6; }
-        if eval test x\$$cachevar = xyes; then
-          CXX_DIALECT="$switch"
-          CXX="$CXX $switch"
-          if test -n "$CXXCPP" ; then
-            CXXCPP="$CXXCPP $switch"
-          fi
-          ac_success=yes
-          break
-        fi
+       if eval test x\$$cachevar = xyes; then
+         CXX_DIALECT="$switch"
+         CXX="$CXX $switch"
+         if test -n "$CXXCPP" ; then
+           CXXCPP="$CXXCPP $switch"
+         fi
+         ac_success=yes
+         break
+       fi
       done
       if test x$ac_success = xyes; then
-        break
+       break
       fi
     done
   fi
@@ -9433,8 +9433,8 @@ int
 main ()
 {
 sigjmp_buf env;
-           while (! sigsetjmp (env, 1))
-             siglongjmp (env, 1);
+          while (! sigsetjmp (env, 1))
+            siglongjmp (env, 1);
 
   ;
   return 0;
@@ -13382,9 +13382,9 @@ int
 main ()
 {
 
-                          #if !defined __GNUC__ || defined __clang__
-                          #error not gcc
-                          #endif
+                         #if !defined __GNUC__ || defined __clang__
+                         #error not gcc
+                         #endif
 
   ;
   return 0;
@@ -13404,9 +13404,9 @@ int
 main ()
 {
 
-                          #ifndef __clang__
-                          #error not clang
-                          #endif
+                         #ifndef __clang__
+                         #error not clang
+                         #endif
 
   ;
   return 0;
@@ -13509,9 +13509,9 @@ if test "${enable_build_warnings+set}" = set; then :
   yes) ;;
   no)  build_warnings="-w";;
   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${build_warnings} ${t}";;
+       build_warnings="${build_warnings} ${t}";;
   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${t} ${build_warnings}";;
+       build_warnings="${t} ${build_warnings}";;
   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
 esac
 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
@@ -13524,9 +13524,9 @@ if test "${enable_gdb_build_warnings+set}" = set; then :
   yes) ;;
   no)  build_warnings="-w";;
   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${build_warnings} ${t}";;
+       build_warnings="${build_warnings} ${t}";;
   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${t} ${build_warnings}";;
+       build_warnings="${t} ${build_warnings}";;
   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
 esac
 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
@@ -13556,7 +13556,7 @@ $as_echo_n "checking compiler warning flags... " >&6; }
        case $w in
        -Wno-*)
                wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
-        -Wformat-nonliteral)
+       -Wformat-nonliteral)
                # gcc requires -Wformat before -Wformat-nonliteral
                # will work, so stick them together.
                w="-Wformat $w"
@@ -13971,8 +13971,8 @@ if ${gdb_cv_i386_is_x86_64+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   save_CPPFLAGS="$CPPFLAGS"
-                    CPPFLAGS="$CPPFLAGS $CFLAGS"
-                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+                   CPPFLAGS="$CPPFLAGS $CFLAGS"
+                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
 #if __x86_64__
@@ -13988,7 +13988,7 @@ else
 fi
 rm -f conftest*
 
-                    CPPFLAGS="$save_CPPFLAGS"
+                   CPPFLAGS="$save_CPPFLAGS"
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
@@ -14031,8 +14031,8 @@ if ${gdb_cv_m68k_is_coldfire+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   save_CPPFLAGS="$CPPFLAGS"
-                    CPPFLAGS="$CPPFLAGS $CFLAGS"
-                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+                   CPPFLAGS="$CPPFLAGS $CFLAGS"
+                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
 #ifdef __mcoldfire__
@@ -14048,7 +14048,7 @@ else
 fi
 rm -f conftest*
 
-                    CPPFLAGS="$save_CPPFLAGS"
+                   CPPFLAGS="$save_CPPFLAGS"
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
index f5a669a90b7f195ac403bcac962b4beb15b5df81..f4c13a9b5dc269c80e66ea56edceaf5e3585ab1d 100644 (file)
@@ -161,15 +161,15 @@ changequote(,)dnl
   i[34567]86-*-linux*)
 changequote([,])dnl
     AC_CACHE_CHECK([if building for x86-64], [gdb_cv_i386_is_x86_64],
-                  [save_CPPFLAGS="$CPPFLAGS"
-                    CPPFLAGS="$CPPFLAGS $CFLAGS"
-                    AC_EGREP_CPP([got it], [
+                  [save_CPPFLAGS="$CPPFLAGS"
+                   CPPFLAGS="$CPPFLAGS $CFLAGS"
+                   AC_EGREP_CPP([got it], [
 #if __x86_64__
 got it
 #endif
-                 ], [gdb_cv_i386_is_x86_64=yes],
-                    [gdb_cv_i386_is_x86_64=no])
-                    CPPFLAGS="$save_CPPFLAGS"])
+                ], [gdb_cv_i386_is_x86_64=yes],
+                   [gdb_cv_i386_is_x86_64=no])
+                   CPPFLAGS="$save_CPPFLAGS"])
     ;;
 
   x86_64-*-linux*)
@@ -187,15 +187,15 @@ got it
 
   m68k-*-*)
     AC_CACHE_CHECK([if building for Coldfire], [gdb_cv_m68k_is_coldfire],
-                  [save_CPPFLAGS="$CPPFLAGS"
-                    CPPFLAGS="$CPPFLAGS $CFLAGS"
-                    AC_EGREP_CPP([got it], [
+                  [save_CPPFLAGS="$CPPFLAGS"
+                   CPPFLAGS="$CPPFLAGS $CFLAGS"
+                   AC_EGREP_CPP([got it], [
 #ifdef __mcoldfire__
 got it
 #endif
-                 ], [gdb_cv_m68k_is_coldfire=yes],
-                    [gdb_cv_m68k_is_coldfire=no])
-                    CPPFLAGS="$save_CPPFLAGS"])
+                ], [gdb_cv_m68k_is_coldfire=yes],
+                   [gdb_cv_m68k_is_coldfire=no])
+                   CPPFLAGS="$save_CPPFLAGS"])
     ;;
 esac
 
@@ -367,8 +367,8 @@ dnl Check for -fvisibility=hidden support in the compiler.
 saved_cflags="$CFLAGS"
 CFLAGS="$CFLAGS -fvisibility=hidden"
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
-                       [gdbsrv_cv_have_visibility_hidden=yes],
-                       [gdbsrv_cv_have_visibility_hidden=no])
+                       [gdbsrv_cv_have_visibility_hidden=yes],
+                       [gdbsrv_cv_have_visibility_hidden=no])
 CFLAGS="$saved_cflags"
 
 IPA_DEPFILES=""
index cde8bd6df57c3d9a0cc6a71daba18d3b11191b38..6064cd2a92605915f0314a53c3e062d63c37bc6d 100644 (file)
@@ -2,7 +2,7 @@ dnl Autoconf configure snippets for common.
 dnl Copyright (C) 1995-2025 Free Software Foundation, Inc.
 dnl
 dnl This file is part of GDB.
-dnl 
+dnl
 dnl This program is free software; you can redistribute it and/or modify
 dnl it under the terms of the GNU General Public License as published by
 dnl the Free Software Foundation; either version 3 of the License, or
@@ -176,11 +176,11 @@ AC_CHECK_HEADERS([ \
     [gdb_cv_func_sigsetjmp],
     [AC_COMPILE_IFELSE(
        [AC_LANG_PROGRAM(
-          [#include <setjmp.h>],
-          [sigjmp_buf env;
-           while (! sigsetjmp (env, 1))
-             siglongjmp (env, 1);]
-        )],
+         [#include <setjmp.h>],
+         [sigjmp_buf env;
+          while (! sigsetjmp (env, 1))
+            siglongjmp (env, 1);]
+       )],
        [gdb_cv_func_sigsetjmp=yes],
        [gdb_cv_func_sigsetjmp=no]
      )]
index 5de502c81d5fa63f35f68b18830b3b5a23038c1d..b0685ecb1e5dfe21fd6b4c6c2e3fd52ca3d3bb2f 100644 (file)
@@ -30,28 +30,28 @@ dnl along with this program.  If not, see <http://www.gnu.org/licenses/>.
 AC_DEFUN([AM_GDB_COMPILER_TYPE],[
 
   AC_CACHE_CHECK([the compiler type],
-                 [gdb_cv_compiler_type],
+                [gdb_cv_compiler_type],
  [gdb_cv_compiler_type=unknown
   if test "$gdb_cv_compiler_type" = unknown; then
      AC_COMPILE_IFELSE(
-        [AC_LANG_PROGRAM([],
-                         [
-                          #if !defined __GNUC__ || defined __clang__
-                          #error not gcc
-                          #endif
-                         ])],
-        [gdb_cv_compiler_type=gcc], [])
+       [AC_LANG_PROGRAM([],
+                        [
+                         #if !defined __GNUC__ || defined __clang__
+                         #error not gcc
+                         #endif
+                        ])],
+       [gdb_cv_compiler_type=gcc], [])
   fi
 
   if test "$gdb_cv_compiler_type" = unknown; then
      AC_COMPILE_IFELSE(
-        [AC_LANG_PROGRAM([],
-                         [
-                          #ifndef __clang__
-                          #error not clang
-                          #endif
-                         ])],
-        [gdb_cv_compiler_type=clang], [])
+       [AC_LANG_PROGRAM([],
+                        [
+                         #ifndef __clang__
+                         #error not clang
+                         #endif
+                        ])],
+       [gdb_cv_compiler_type=clang], [])
   fi
  ])
 
index 133ddfa7f6c88bfc7e225bfe86d562aa34c0fc46..05ad00f48c4f43d992f185c4aa22dfc897f14a0a 100755 (executable)
@@ -6158,10 +6158,10 @@ namespace cxx11
       auto c = [=](){ return a + b; }();
       auto d = [&](){ return c; }();
       auto e = [a, &b](int x) mutable {
-        const auto identity = [](int y){ return y; };
-        for (auto i = 0; i < a; ++i)
-          a += b--;
-        return x + identity(a + b);
+       const auto identity = [](int y){ return y; };
+       for (auto i = 0; i < a; ++i)
+         a += b--;
+       return x + identity(a + b);
       }(0);
       return a + b + c + d + e;
     }
@@ -6175,7 +6175,7 @@ namespace cxx11
       using unary_t = decltype(unary);
       const auto higher1st = [](nullary_t f){ return f(); };
       const auto higher2nd = [unary](nullary_t f1){
-        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
+       return [unary, f1](unary_t f2){ return f2(unary(f1())); };
       };
       return higher1st(nullary) + higher2nd(nullary)(unary);
     }
@@ -6262,11 +6262,11 @@ namespace cxx14
     test()
     {
       const auto lambda = [](auto&&... args){
-        const auto istiny = [](auto x){
-          return (sizeof(x) == 1UL) ? 1 : 0;
-        };
-        const int aretiny[] = { istiny(args)... };
-        return aretiny[0];
+       const auto istiny = [](auto x){
+         return (sizeof(x) == 1UL) ? 1 : 0;
+       };
+       const int aretiny[] = { istiny(args)... };
+       return aretiny[0];
       };
       return lambda(1, 1L, 1.0f, '1');
     }
@@ -6290,7 +6290,7 @@ namespace cxx14
     {
       auto length = 0UL;
       for (auto p = s; *p; ++p)
-        ++length;
+       ++length;
       return length;
     }
 
@@ -6447,10 +6447,10 @@ namespace cxx17
       switch (f1())
       {
       case 17:
-        f1();
-        [[fallthrough]];
+       f1();
+       [[fallthrough]];
       case 42:
-        f1();
+       f1();
       }
       return f1();
     }
@@ -6468,14 +6468,14 @@ namespace cxx17
     struct base2
     {
       base2() {
-        b3 = 42;
+       b3 = 42;
       }
       int b3;
     };
 
     struct derived : base1, base2
     {
-        int d;
+       int d;
     };
 
     derived d1 {{1, 2}, {}, 4};  // full initialization
@@ -6492,18 +6492,18 @@ namespace cxx17
 
       int& operator* ()
       {
-        return i;
+       return i;
       }
 
       const int& operator* () const
       {
-        return i;
+       return i;
       }
 
       iter& operator++()
       {
-        ++i;
-        return *this;
+       ++i;
+       return *this;
       }
     };
 
@@ -6526,12 +6526,12 @@ namespace cxx17
     {
       iter begin() const
       {
-        return {0};
+       return {0};
       }
 
       sentinel end() const
       {
-        return {5};
+       return {5};
       }
     };
 
@@ -6541,7 +6541,7 @@ namespace cxx17
 
       for (auto i : r)
       {
-        [[maybe_unused]] auto v = i;
+       [[maybe_unused]] auto v = i;
       }
     }
 
@@ -6555,10 +6555,10 @@ namespace cxx17
       int i;
       int foo()
       {
-        return [*this]()
-        {
-          return i;
-        }();
+       return [*this]()
+       {
+         return i;
+       }();
       }
     };
 
@@ -6582,11 +6582,11 @@ namespace cxx17
     {
       if constexpr(cond)
       {
-        return 13;
+       return 13;
       }
       else
       {
-        return 42;
+       return 42;
       }
     }
 
@@ -6604,16 +6604,16 @@ namespace cxx17
     {
       if (auto i = f(); i > 0)
       {
-        return 3;
+       return 3;
       }
 
       switch (auto i = f(); i + 4)
       {
       case 17:
-        return 2;
+       return 2;
 
       default:
-        return 1;
+       return 1;
       }
     }
 
@@ -6626,8 +6626,8 @@ namespace cxx17
     struct pair
     {
       pair (T1 p1, T2 p2)
-        : m1 {p1},
-          m2 {p2}
+       : m1 {p1},
+         m2 {p2}
       {}
 
       T1 m1;
@@ -6760,8 +6760,8 @@ if eval \${$cachevar+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_save_CXX="$CXX"
-         CXX="$CXX $switch"
-         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+        CXX="$CXX $switch"
+        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
 
@@ -6975,10 +6975,10 @@ namespace cxx11
       auto c = [=](){ return a + b; }();
       auto d = [&](){ return c; }();
       auto e = [a, &b](int x) mutable {
-        const auto identity = [](int y){ return y; };
-        for (auto i = 0; i < a; ++i)
-          a += b--;
-        return x + identity(a + b);
+       const auto identity = [](int y){ return y; };
+       for (auto i = 0; i < a; ++i)
+         a += b--;
+       return x + identity(a + b);
       }(0);
       return a + b + c + d + e;
     }
@@ -6992,7 +6992,7 @@ namespace cxx11
       using unary_t = decltype(unary);
       const auto higher1st = [](nullary_t f){ return f(); };
       const auto higher2nd = [unary](nullary_t f1){
-        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
+       return [unary, f1](unary_t f2){ return f2(unary(f1())); };
       };
       return higher1st(nullary) + higher2nd(nullary)(unary);
     }
@@ -7079,11 +7079,11 @@ namespace cxx14
     test()
     {
       const auto lambda = [](auto&&... args){
-        const auto istiny = [](auto x){
-          return (sizeof(x) == 1UL) ? 1 : 0;
-        };
-        const int aretiny[] = { istiny(args)... };
-        return aretiny[0];
+       const auto istiny = [](auto x){
+         return (sizeof(x) == 1UL) ? 1 : 0;
+       };
+       const int aretiny[] = { istiny(args)... };
+       return aretiny[0];
       };
       return lambda(1, 1L, 1.0f, '1');
     }
@@ -7107,7 +7107,7 @@ namespace cxx14
     {
       auto length = 0UL;
       for (auto p = s; *p; ++p)
-        ++length;
+       ++length;
       return length;
     }
 
@@ -7264,10 +7264,10 @@ namespace cxx17
       switch (f1())
       {
       case 17:
-        f1();
-        [[fallthrough]];
+       f1();
+       [[fallthrough]];
       case 42:
-        f1();
+       f1();
       }
       return f1();
     }
@@ -7285,14 +7285,14 @@ namespace cxx17
     struct base2
     {
       base2() {
-        b3 = 42;
+       b3 = 42;
       }
       int b3;
     };
 
     struct derived : base1, base2
     {
-        int d;
+       int d;
     };
 
     derived d1 {{1, 2}, {}, 4};  // full initialization
@@ -7309,18 +7309,18 @@ namespace cxx17
 
       int& operator* ()
       {
-        return i;
+       return i;
       }
 
       const int& operator* () const
       {
-        return i;
+       return i;
       }
 
       iter& operator++()
       {
-        ++i;
-        return *this;
+       ++i;
+       return *this;
       }
     };
 
@@ -7343,12 +7343,12 @@ namespace cxx17
     {
       iter begin() const
       {
-        return {0};
+       return {0};
       }
 
       sentinel end() const
       {
-        return {5};
+       return {5};
       }
     };
 
@@ -7358,7 +7358,7 @@ namespace cxx17
 
       for (auto i : r)
       {
-        [[maybe_unused]] auto v = i;
+       [[maybe_unused]] auto v = i;
       }
     }
 
@@ -7372,10 +7372,10 @@ namespace cxx17
       int i;
       int foo()
       {
-        return [*this]()
-        {
-          return i;
-        }();
+       return [*this]()
+       {
+         return i;
+       }();
       }
     };
 
@@ -7399,11 +7399,11 @@ namespace cxx17
     {
       if constexpr(cond)
       {
-        return 13;
+       return 13;
       }
       else
       {
-        return 42;
+       return 42;
       }
     }
 
@@ -7421,16 +7421,16 @@ namespace cxx17
     {
       if (auto i = f(); i > 0)
       {
-        return 3;
+       return 3;
       }
 
       switch (auto i = f(); i + 4)
       {
       case 17:
-        return 2;
+       return 2;
 
       default:
-        return 1;
+       return 1;
       }
     }
 
@@ -7443,8 +7443,8 @@ namespace cxx17
     struct pair
     {
       pair (T1 p1, T2 p2)
-        : m1 {p1},
-          m2 {p2}
+       : m1 {p1},
+         m2 {p2}
       {}
 
       T1 m1;
@@ -7560,19 +7560,19 @@ else
   eval $cachevar=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-         CXX="$ac_save_CXX"
+        CXX="$ac_save_CXX"
 fi
 eval ac_res=\$$cachevar
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 $as_echo "$ac_res" >&6; }
       if eval test x\$$cachevar = xyes; then
-        CXX_DIALECT="$switch"
-        CXX="$CXX $switch"
-        if test -n "$CXXCPP" ; then
-          CXXCPP="$CXXCPP $switch"
-        fi
-        ac_success=yes
-        break
+       CXX_DIALECT="$switch"
+       CXX="$CXX $switch"
+       if test -n "$CXXCPP" ; then
+         CXXCPP="$CXXCPP $switch"
+       fi
+       ac_success=yes
+       break
       fi
     done
   fi
@@ -7580,20 +7580,20 @@ $as_echo "$ac_res" >&6; }
     if test x$ac_success = xno; then
                     for alternative in ${ax_cxx_compile_alternatives}; do
       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
-        if test x"$switch" = xMSVC; then
-                                        switch=-std:c++${alternative}
-          cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | $as_tr_sh`
-        else
-          cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
-        fi
-        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
+       if test x"$switch" = xMSVC; then
+                                 switch=-std:c++${alternative}
+         cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | $as_tr_sh`
+       else
+         cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
+       fi
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
 if eval \${$cachevar+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_save_CXX="$CXX"
-           CXX="$CXX $switch"
-           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+          CXX="$CXX $switch"
+          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
 
@@ -7807,10 +7807,10 @@ namespace cxx11
       auto c = [=](){ return a + b; }();
       auto d = [&](){ return c; }();
       auto e = [a, &b](int x) mutable {
-        const auto identity = [](int y){ return y; };
-        for (auto i = 0; i < a; ++i)
-          a += b--;
-        return x + identity(a + b);
+       const auto identity = [](int y){ return y; };
+       for (auto i = 0; i < a; ++i)
+         a += b--;
+       return x + identity(a + b);
       }(0);
       return a + b + c + d + e;
     }
@@ -7824,7 +7824,7 @@ namespace cxx11
       using unary_t = decltype(unary);
       const auto higher1st = [](nullary_t f){ return f(); };
       const auto higher2nd = [unary](nullary_t f1){
-        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
+       return [unary, f1](unary_t f2){ return f2(unary(f1())); };
       };
       return higher1st(nullary) + higher2nd(nullary)(unary);
     }
@@ -7911,11 +7911,11 @@ namespace cxx14
     test()
     {
       const auto lambda = [](auto&&... args){
-        const auto istiny = [](auto x){
-          return (sizeof(x) == 1UL) ? 1 : 0;
-        };
-        const int aretiny[] = { istiny(args)... };
-        return aretiny[0];
+       const auto istiny = [](auto x){
+         return (sizeof(x) == 1UL) ? 1 : 0;
+       };
+       const int aretiny[] = { istiny(args)... };
+       return aretiny[0];
       };
       return lambda(1, 1L, 1.0f, '1');
     }
@@ -7939,7 +7939,7 @@ namespace cxx14
     {
       auto length = 0UL;
       for (auto p = s; *p; ++p)
-        ++length;
+       ++length;
       return length;
     }
 
@@ -8096,10 +8096,10 @@ namespace cxx17
       switch (f1())
       {
       case 17:
-        f1();
-        [[fallthrough]];
+       f1();
+       [[fallthrough]];
       case 42:
-        f1();
+       f1();
       }
       return f1();
     }
@@ -8117,14 +8117,14 @@ namespace cxx17
     struct base2
     {
       base2() {
-        b3 = 42;
+       b3 = 42;
       }
       int b3;
     };
 
     struct derived : base1, base2
     {
-        int d;
+       int d;
     };
 
     derived d1 {{1, 2}, {}, 4};  // full initialization
@@ -8141,18 +8141,18 @@ namespace cxx17
 
       int& operator* ()
       {
-        return i;
+       return i;
       }
 
       const int& operator* () const
       {
-        return i;
+       return i;
       }
 
       iter& operator++()
       {
-        ++i;
-        return *this;
+       ++i;
+       return *this;
       }
     };
 
@@ -8175,12 +8175,12 @@ namespace cxx17
     {
       iter begin() const
       {
-        return {0};
+       return {0};
       }
 
       sentinel end() const
       {
-        return {5};
+       return {5};
       }
     };
 
@@ -8190,7 +8190,7 @@ namespace cxx17
 
       for (auto i : r)
       {
-        [[maybe_unused]] auto v = i;
+       [[maybe_unused]] auto v = i;
       }
     }
 
@@ -8204,10 +8204,10 @@ namespace cxx17
       int i;
       int foo()
       {
-        return [*this]()
-        {
-          return i;
-        }();
+       return [*this]()
+       {
+         return i;
+       }();
       }
     };
 
@@ -8231,11 +8231,11 @@ namespace cxx17
     {
       if constexpr(cond)
       {
-        return 13;
+       return 13;
       }
       else
       {
-        return 42;
+       return 42;
       }
     }
 
@@ -8253,16 +8253,16 @@ namespace cxx17
     {
       if (auto i = f(); i > 0)
       {
-        return 3;
+       return 3;
       }
 
       switch (auto i = f(); i + 4)
       {
       case 17:
-        return 2;
+       return 2;
 
       default:
-        return 1;
+       return 1;
       }
     }
 
@@ -8275,8 +8275,8 @@ namespace cxx17
     struct pair
     {
       pair (T1 p1, T2 p2)
-        : m1 {p1},
-          m2 {p2}
+       : m1 {p1},
+         m2 {p2}
       {}
 
       T1 m1;
@@ -8392,23 +8392,23 @@ else
   eval $cachevar=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-           CXX="$ac_save_CXX"
+          CXX="$ac_save_CXX"
 fi
 eval ac_res=\$$cachevar
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 $as_echo "$ac_res" >&6; }
-        if eval test x\$$cachevar = xyes; then
-          CXX_DIALECT="$switch"
-          CXX="$CXX $switch"
-          if test -n "$CXXCPP" ; then
-            CXXCPP="$CXXCPP $switch"
-          fi
-          ac_success=yes
-          break
-        fi
+       if eval test x\$$cachevar = xyes; then
+         CXX_DIALECT="$switch"
+         CXX="$CXX $switch"
+         if test -n "$CXXCPP" ; then
+           CXXCPP="$CXXCPP $switch"
+         fi
+         ac_success=yes
+         break
+       fi
       done
       if test x$ac_success = xyes; then
-        break
+       break
       fi
     done
   fi
@@ -12330,8 +12330,8 @@ int
 main ()
 {
 sigjmp_buf env;
-           while (! sigsetjmp (env, 1))
-             siglongjmp (env, 1);
+          while (! sigsetjmp (env, 1))
+            siglongjmp (env, 1);
 
   ;
   return 0;
@@ -14057,9 +14057,9 @@ int
 main ()
 {
 
-                          #if !defined __GNUC__ || defined __clang__
-                          #error not gcc
-                          #endif
+                         #if !defined __GNUC__ || defined __clang__
+                         #error not gcc
+                         #endif
 
   ;
   return 0;
@@ -14079,9 +14079,9 @@ int
 main ()
 {
 
-                          #ifndef __clang__
-                          #error not clang
-                          #endif
+                         #ifndef __clang__
+                         #error not clang
+                         #endif
 
   ;
   return 0;
@@ -14184,9 +14184,9 @@ if test "${enable_build_warnings+set}" = set; then :
   yes) ;;
   no)  build_warnings="-w";;
   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${build_warnings} ${t}";;
+       build_warnings="${build_warnings} ${t}";;
   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${t} ${build_warnings}";;
+       build_warnings="${t} ${build_warnings}";;
   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
 esac
 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
@@ -14199,9 +14199,9 @@ if test "${enable_gdb_build_warnings+set}" = set; then :
   yes) ;;
   no)  build_warnings="-w";;
   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${build_warnings} ${t}";;
+       build_warnings="${build_warnings} ${t}";;
   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${t} ${build_warnings}";;
+       build_warnings="${t} ${build_warnings}";;
   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
 esac
 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
@@ -14231,7 +14231,7 @@ $as_echo_n "checking compiler warning flags... " >&6; }
        case $w in
        -Wno-*)
                wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
-        -Wformat-nonliteral)
+       -Wformat-nonliteral)
                # gcc requires -Wformat before -Wformat-nonliteral
                # will work, so stick them together.
                w="-Wformat $w"
index b7ccfabd6c6feb9b884495295a15c37dabcd3516..02c16a5abdeaad40bb4401141d5bd23ba41dfcd0 100644 (file)
@@ -79,7 +79,7 @@ fi
 case ${host} in
   *mingw32*)
     AC_DEFINE(USE_WIN32API, 1,
-              [Define if we should use the Windows API, instead of the
+             [Define if we should use the Windows API, instead of the
               POSIX API.  On Windows, we use the Windows API when
               building for MinGW, but the POSIX API when building
               for Cygwin.])
index df1a759fe12028c260613ba56d32e2bf7be80d24..eef0c6ead809b679ccc861da16c86ce167cb0898 100644 (file)
@@ -44,7 +44,7 @@ esac], [enable_unittests=$development])
 
 if $enable_unittests; then
   AC_DEFINE(GDB_SELF_TEST, 1,
-            [Define if self-testing features should be enabled])
+           [Define if self-testing features should be enabled])
   $1
 fi
 ])
index fe1d279e0151b6fe1eb695ef052d144d52b830e5..3df83e44ca6f8771302bfd95167f70e1dc672441 100644 (file)
@@ -99,9 +99,9 @@ AS_HELP_STRING([--enable-build-warnings], [enable build-time compiler warnings i
   yes) ;;
   no)  build_warnings="-w";;
   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${build_warnings} ${t}";;
+       build_warnings="${build_warnings} ${t}";;
   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${t} ${build_warnings}";;
+       build_warnings="${t} ${build_warnings}";;
   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
 esac
 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
@@ -113,9 +113,9 @@ AS_HELP_STRING([--enable-gdb-build-warnings], [enable GDB specific build-time co
   yes) ;;
   no)  build_warnings="-w";;
   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${build_warnings} ${t}";;
+       build_warnings="${build_warnings} ${t}";;
   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        build_warnings="${t} ${build_warnings}";;
+       build_warnings="${t} ${build_warnings}";;
   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
 esac
 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
@@ -138,7 +138,7 @@ then
        case $w in
        -Wno-*)
                wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
-        -Wformat-nonliteral)
+       -Wformat-nonliteral)
                # gcc requires -Wformat before -Wformat-nonliteral
                # will work, so stick them together.
                w="-Wformat $w"