diff options
author | Michael Snyder <msnyder@vmware.com> | 2000-08-30 00:58:58 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2000-08-30 00:58:58 +0000 |
commit | 23e049712dca23855caea20f302a64039360e381 (patch) | |
tree | 770a6936c7d091fff978b4c8bc6e6fe70496ef9f /gdb/configure.in | |
parent | bafda96e6e2bc73cee9ffa61d893c96a592b92b5 (diff) | |
download | gdb-23e049712dca23855caea20f302a64039360e381.zip gdb-23e049712dca23855caea20f302a64039360e381.tar.gz gdb-23e049712dca23855caea20f302a64039360e381.tar.bz2 |
2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
* valops.c (value_cast): Indentation fix-up.
* acconfig.h (HAVE_PRGREGSET32_T, HAVE_PRFPREGSET32_T,
HAVE_STRUCT_LINK_MAP32): New configure macros.
* config.in: Ditto.
* configure.in: Test for the above new macros.
* breakpoint.c: Update copyright date.
* core-sol2.c: Include v9/sys/privregs.h directly to
work around a bug in Sun's Solaris 8 header files.
(fetch_core_registers): Use the above new configure macros to
handle cross-debugging of 32-bit core files on a 64-bit host.
* sol-thread.c (ps_pdmodel) New function.
(rw_common): For debugging of 32-bit apps on a 64-bit host,
truncate addresses to 32 bits.
* solib.c (solib_extract_address): Functionize. Make 32/64 aware.
(LM_ADDR, LM_NEXT, LM_NAME): Ditto.
(IGNORE_FIRST_LINK_MAP): Ditto.
(first_link_map_member): Make 32/64 aware.
(open_symbol_file_object): Ditto.
(current_sos): Ditto.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index 6dfd7f1..6dda43a 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -229,9 +229,32 @@ if test "$ac_cv_header_sys_procfs_h" = yes; then BFD_HAVE_SYS_PROCFS_TYPE(fpregset_t) BFD_HAVE_SYS_PROCFS_TYPE(prgregset_t) BFD_HAVE_SYS_PROCFS_TYPE(prfpregset_t) + BFD_HAVE_SYS_PROCFS_TYPE(prgregset32_t) + BFD_HAVE_SYS_PROCFS_TYPE(prfpregset32_t) BFD_HAVE_SYS_PROCFS_TYPE(lwpid_t) BFD_HAVE_SYS_PROCFS_TYPE(psaddr_t) + dnl Check for struct link_map32 type, which allows a 64-bit Solaris + dnl debugger to debug a 32-bit Solaris app with 32-bit shared libraries. + + AC_MSG_CHECKING(for struct link_map32 in sys/link.h) + AC_CACHE_VAL(gdb_cv_have_struct_link_map32, + [AC_TRY_RUN([#define _SYSCALL32 + #include <sys/link.h> + int main() + { + if (sizeof (struct link_map32) > 0) + return 1; + return 0; + }], + gdb_cv_have_struct_link_map32=no, + gdb_cv_have_struct_link_map32=yes, + gdb_cv_have_struct_link_map32=yes)]) + AC_MSG_RESULT($gdb_cv_have_struct_link_map32) + if test $gdb_cv_have_struct_link_map32 = yes; then + AC_DEFINE(HAVE_STRUCT_LINK_MAP32) + fi + dnl Check for broken prfpregset_t type dnl For Linux/i386, glibc 2.1.3 was released with a bogus |