aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-11-26 19:23:56 +0000
committerTom Tromey <tromey@redhat.com>2012-11-26 19:23:56 +0000
commit608e2dbbfefcec9aa3efc863ffcc889786ae93d7 (patch)
tree864efd0235bc2d56f8be06b71c4b0e058cbdc5eb /gdb/configure.ac
parent4648e5880ea4bc32689612ccf586b0fb2c9c0884 (diff)
downloadgdb-608e2dbbfefcec9aa3efc863ffcc889786ae93d7.zip
gdb-608e2dbbfefcec9aa3efc863ffcc889786ae93d7.tar.gz
gdb-608e2dbbfefcec9aa3efc863ffcc889786ae93d7.tar.bz2
2012-11-26 Alexander Larsson <alexl@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com> Tom Tromey <tromey@redhat.com> * NEWS: Mention mini debuginfo feature. * minidebug.c: New file. * configure.ac: Check for lzma. * configure, config.in: Rebuild. * Makefile.in (LIBLZMA): New variable. (CLIBS): Include LIBLZMA. (SFILES): Mention minidebug.c. (COMMON_OBS): Mention minidebug.o. * symfile.c (read_symbols): New function. (syms_from_objfile, reread_symbols): Call it. * symfile.h (find_separate_debug_file_in_section): Declare. doc * gdb.texinfo (MiniDebugInfo): New node. (GDB Files): Update. testsuite * gdb.base/gnu-debugdata.exp: New file. * gdb.base/gnu-debugdata.c: New file. * lib/gdb.exp (gdb_file_cmd): Handle LZMA warning. (gdb_unload): Return 0 on success.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac21
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 030fb06..9791143 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -2053,6 +2053,27 @@ LIBS=$OLD_LIBS
# Add any host-specific objects to GDB.
CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
+# If building on ELF, look for lzma support for embedded compressed debug info.
+if test $gdb_cv_var_elf = yes; then
+ AC_ARG_WITH(lzma,
+ AS_HELP_STRING([--with-lzma], [support lzma compression (auto/yes/no)]),
+ [], [with_lzma=auto])
+ AC_MSG_CHECKING([whether to use lzma])
+ AC_MSG_RESULT([$with_lzma])
+
+ if test "${with_lzma}" != no; then
+ AC_LIB_HAVE_LINKFLAGS([lzma], [], [#include "lzma.h"],
+ [lzma_index_iter iter;
+ lzma_index_iter_init (&iter, 0);
+ 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])
+ fi
+ fi
+ fi
+fi
+
LIBGUI="../libgui/src/libgui.a"
GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
AC_SUBST(LIBGUI)