diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-03-08 19:08:11 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-03-08 19:08:11 +0000 |
commit | 05e7c244344f338bf2af7718db34eb91637587dd (patch) | |
tree | c54bedc67c10a03f6204c11bb2f195e99bcc3cfa /gdb/configure | |
parent | 3755cbfddc91fe4bf18f708b637a45f7c8c75e6f (diff) | |
download | gdb-05e7c244344f338bf2af7718db34eb91637587dd.zip gdb-05e7c244344f338bf2af7718db34eb91637587dd.tar.gz gdb-05e7c244344f338bf2af7718db34eb91637587dd.tar.bz2 |
gdb/
* libunwind-frame.c: Rename to ...
* ia64-libunwind-tdep.c: ... here.
* libunwind-frame.h: Rename to ...
* ia64-libunwind-tdep.h: ... here.
* Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
ia64-libunwind-tdep.h.
(ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
* README (--with-libunwind): Rename to ...
(--with-libunwind-ia64): ... here, note it is ia64 specific now.
* config.in: Regenerate.
* configure: Regenerate.
* configure.ac: New option --with-libunwind-ia64, make the
AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
Remove AC_DEFINE for HAVE_LIBUNWIND.
* ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
Rename libunwind-frame in the general comment.
* ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
Move forward declarations inside #ifndef. Rename libunwind-frame in
the general comment.
* ia64-tdep.c: Rename libunwind-frame.h #include to
ia64-libunwind-tdep.h.
(ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
(ia64_libunwind_descr): Rename libunwind-frame to
ia64-libunwind-tdep in these function comments.
* ia64-tdep.h: Rename libunwind-frame.h #include to
ia64-libunwind-tdep.h.
* ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
ia64-libunwind-tdep in that data comment.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-x | gdb/configure | 62 |
1 files changed, 38 insertions, 24 deletions
diff --git a/gdb/configure b/gdb/configure index eeb2696..207defd 100755 --- a/gdb/configure +++ b/gdb/configure @@ -957,7 +957,7 @@ enable_gdbcli enable_gdbmi enable_tui enable_gdbtk -with_libunwind +with_libunwind_ia64 with_curses enable_profiling with_pkgversion @@ -1659,7 +1659,7 @@ Optional Packages: [DATADIR/gdb] --with-relocated-sources=PATH automatically relocate this path for source files - --with-libunwind use libunwind frame unwinding support + --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets --with-curses use the curses library instead of the termcap library --with-pkgversion=PKG Use PKG in the version string in place of "GDB" @@ -8196,18 +8196,32 @@ $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} enable_gdbtk=no ;; esac -# Libunwind support. +# Libunwind support for ia64. -# Check whether --with-libunwind was given. -if test "${with_libunwind+set}" = set; then : - withval=$with_libunwind; case "${withval}" in - yes) enable_libunwind=yes ;; - no) enable_libunwind=no ;; - *) as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;; -esac + +# Check whether --with-libunwind-ia64 was given. +if test "${with_libunwind_ia64+set}" = set; then : + withval=$with_libunwind_ia64; else + with_libunwind_ia64=auto +fi - for ac_header in libunwind-ia64.h + +# Backward compatibility option. +if test "${with_libunwind+set}" = set; then + if test x"$with_libunwind_ia64" != xauto; then + as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5 +$as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;} + with_libunwind_ia64="$with_libunwind" +fi + +case "$with_libunwind_ia64" in + yes | no) + ;; + auto) + for ac_header in libunwind-ia64.h do : ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default" if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then : @@ -8219,14 +8233,14 @@ fi done - if test x"$ac_cv_header_libunwind_ia64_h" = xyes; then - enable_libunwind=yes; - fi - -fi - + with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h + ;; + *) + as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5 + ;; +esac -if test x"$enable_libunwind" = xyes; then +if test x"$with_libunwind_ia64" = xyes; then for ac_header in libunwind-ia64.h do : ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default" @@ -8239,12 +8253,12 @@ fi done - -$as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h - - CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" - CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" - CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" + if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then + as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5 + fi + CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o" + CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o" + CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c" fi opt_curses=no |