Date: Fri, 22 Jul 2005 00:20:09 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 80722 for review Message-ID: <200507220020.j6M0K945033429@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=80722 Change 80722 by peter@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.,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507220020.j6M0K945033429>