PERFORCE change 80722 for review
Peter Wemm
peter at FreeBSD.org
Fri Jul 22 00:20:11 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=80722
Change 80722 by peter at peter_melody on 2005/07/22 00:19:09
enable 32 bit gdb to work in a 64 bit universe
Affected files ...
.. //depot/projects/hammer/contrib/gdb/gdb/solib-svr4.c#3 edit
.. //depot/projects/hammer/sys/conf/files#119 edit
Differences ...
==== //depot/projects/hammer/contrib/gdb/gdb/solib-svr4.c#3 (text+ko) ====
@@ -1027,7 +1027,14 @@
be trivial on GNU/Linux). Therefore, we have to try an alternate
mechanism to find the dynamic linker's base address. */
- tmp_fd = solib_open (buf, &tmp_pathname);
+#if defined(__i386__) || defined(COMPAT_32BIT)
+ if ((strcmp(buf, "/usr/libexec/ld-elf.so.1") == 0 ||
+ strcmp(buf, "/libexec/ld-elf.so.1") == 0) &&
+ access("/libexec/ld-elf32.so.1", 0) == 0)
+ tmp_fd = solib_open ("/libexec/ld-elf32.so.1", &tmp_pathname);
+ else
+#endif
+ tmp_fd = solib_open (buf, &tmp_pathname);
if (tmp_fd >= 0)
tmp_bfd = bfd_fdopenr (tmp_pathname, gnutarget, tmp_fd);
==== //depot/projects/hammer/sys/conf/files#119 (text+ko) ====
@@ -1298,6 +1298,7 @@
kern/vfs_subr.c standard
kern/vfs_syscalls.c standard
kern/vfs_vnops.c standard
+kern/ylock.c optional ylock
#
# These files in libkern/ are those needed by all architectures. Some
# of the files in libkern/ are only needed on some architectures, e.g.,
More information about the p4-projects
mailing list