aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorCraig Silverstein <csilvers@google.com>2008-04-19 05:06:54 +0000
committerCraig Silverstein <csilvers@google.com>2008-04-19 05:06:54 +0000
commit233a11ab1cb254efafd98e5d530de2d993760e1b (patch)
treeeb8b55a28d2f4a0868face5195ab5931a19f1e9f /gdb/configure.ac
parenta03b3a978574778b7aee965e23a1f60968b0fcb2 (diff)
downloadgdb-233a11ab1cb254efafd98e5d530de2d993760e1b.zip
gdb-233a11ab1cb254efafd98e5d530de2d993760e1b.tar.gz
gdb-233a11ab1cb254efafd98e5d530de2d993760e1b.tar.bz2
* configure.ac (AC_SEARCH_LIBS): Add check for zlib.
* config.in, configure: Regenerate. * dwarf2read.c: Include zlib.h if present. Modified *_SECTION macros. (section_is_p): New. (dwarf2_locate_sections): Use section_is_p instead of strcmp (dwarf2_resize_section): New. to determine whether a given section has a given name. (zlib_decompress_section): New. (dwarf2_read_section): Read the compressed section if present in the binary. * testsuite/gdb.dwarf2/dw2-compressed.S: New file. * testsuite/gdb.dwarf2/dw2-compressed.exp: New file. * MAINTAINERS: Added myself to section Write After Approval.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 43aa2dd..101dedf 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -399,6 +399,9 @@ AC_SEARCH_LIBS(gethostbyname, nsl)
# Some systems (e.g. Solaris) have `socketpair' in libsocket.
AC_SEARCH_LIBS(socketpair, socket)
+# Link in zlib if we can. This allows us to read compressed debug sections.
+AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
+
# For the TUI, we need enhanced curses functionality.
#
# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied