From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15403 invoked by alias); 2 Mar 2009 23:01:08 -0000 Received: (qmail 15254 invoked by uid 22791); 2 Mar 2009 23:01:07 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from el-out-1112.google.com (HELO el-out-1112.google.com) (209.85.162.178) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 Mar 2009 23:01:00 +0000 Received: by el-out-1112.google.com with SMTP id s27so1941442ele.3 for ; Mon, 02 Mar 2009 15:00:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.150.227.14 with SMTP id z14mr11200232ybg.158.1236034857935; Mon, 02 Mar 2009 15:00:57 -0800 (PST) Date: Mon, 02 Mar 2009 23:01:00 -0000 Message-ID: <985ad4e70903021500u594a4c4w30eff9ae287f5e8d@mail.gmail.com> Subject: Problem viewing gcore of 32 bit binary on 64 bit SLES 10.1, gdb 6.6 From: Shane G To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-03/txt/msg00009.txt.bz2 Hello, Apologies if this has been answered, I expect it has, but I haven't been able to find the solution. I'm unable to view any usable information from a gcore that I've run against a 32 bit binary running on a 64 bit version of SLES 10.1. This binary doesn't have any debugging symbols for most of it, however when I initially attach to the process I can get some information from it. Any idea on what I'm doing wrong? Here's the output of file for the binary emg-vm-suse10-1-x86-64:~ # file /my/32bit/process /my/32bit/process: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped Here's the output when I try to view the core file on the same box emg-vm-suse10-1-x86-64:~ # gdb /my/32bit/process my_32bit_process_core GNU gdb 6.6 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-suse-linux"... (no debugging symbols found) Using host libthread_db library "/lib64/libthread_db.so.1". warning: Can't read pathname for load map: Input/output error. ... Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/libpthread.so.0...done. Loaded symbols for /lib/libpthread.so.0 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /my/32bit/lib/libstdc++.so.5...done. Loaded symbols for /my/32bit/lib/libstdc++.so.5 Reading symbols from /lib/libm.so.6...done. Loaded symbols for /lib/libm.so.6 Reading symbols from /my/32bit/lib/libgcc_s.so.1...done. Loaded symbols for /my/32bit/liblib/libgcc_s.so.1 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /lib/libnss_dns.so.2...done. Loaded symbols for /lib/libnss_dns.so.2 Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 warning: Couldn't recognize general-purpose registers in core file. warning: Lowest section in system-supplied DSO at 0xffffe000 is .hash at ffffe0b4 Core was generated by `/my/32bit/process'. warning: Couldn't recognize general-purpose registers in core file. warning: Couldn't recognize general-purpose registers in core file. #0 0x00000000 in ?? () (gdb) bt #0 0x00000000 in ?? () Here's the uname output emg-vm-suse10-1-x86-64:~ # uname -a Linux emg-vm-suse10-1-x86-64 2.6.16.46-0.12-default #1 Thu May 17 14:00:09 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux I've tried specifying "set solib-absolute-path /" to no avail as well.