diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-11-04 14:13:30 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-11-04 14:14:36 -0400 |
commit | 6c130ba387aa3533712e2ea31cd212ac2e269f61 (patch) | |
tree | 0efc701cb837f7f66fd60fc14136f3b6f823712e /gdbserver | |
parent | 33d3e18ed79de364401edab99917d351afd39fd8 (diff) | |
download | gdb-6c130ba387aa3533712e2ea31cd212ac2e269f61.zip gdb-6c130ba387aa3533712e2ea31cd212ac2e269f61.tar.gz gdb-6c130ba387aa3533712e2ea31cd212ac2e269f61.tar.bz2 |
gdbserver: re-generate configure
I get some diffs when running autoconf in gdbserver, probably leftovers
from commit 5dfe4bfcb969 ("Fix format_pieces selftest on Windows").
Re-generate configure in that directory.
Change-Id: Icdc9906af95fbaf1047a579914b2983f8ec5db08
Diffstat (limited to 'gdbserver')
-rw-r--r-- | gdbserver/config.in | 3 | ||||
-rwxr-xr-x | gdbserver/configure | 46 |
2 files changed, 49 insertions, 0 deletions
diff --git a/gdbserver/config.in b/gdbserver/config.in index cf06c56..5fb5b7a 100644 --- a/gdbserver/config.in +++ b/gdbserver/config.in @@ -398,6 +398,9 @@ /* Additional package description */ #undef PKGVERSION +/* Define to 1 if the "%ll" format works to print long longs. */ +#undef PRINTF_HAS_LONG_LONG + /* Define to necessary symbol if this constant uses a non-standard name on your system. */ #undef PTHREAD_CREATE_JOINABLE diff --git a/gdbserver/configure b/gdbserver/configure index f05c1a9..0e32d19 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -8558,6 +8558,52 @@ fi fi fi + # Check if the compiler and runtime support printing long longs. + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5 +$as_echo_n "checking for long long support in printf... " >&6; } +if ${gdb_cv_printf_has_long_long+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + gdb_cv_printf_has_long_long=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +char buf[32]; + long long l = 0; + l = (l << 16) + 0x0123; + l = (l << 16) + 0x4567; + l = (l << 16) + 0x89ab; + l = (l << 16) + 0xcdef; + sprintf (buf, "0x%016llx", l); + return (strcmp ("0x0123456789abcdef", buf)); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gdb_cv_printf_has_long_long=yes +else + gdb_cv_printf_has_long_long=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5 +$as_echo "$gdb_cv_printf_has_long_long" >&6; } + if test "$gdb_cv_printf_has_long_long" = yes; then + +$as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h + + fi + $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h |