This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem viewing gcore of 32 bit binary on 64 bit SLES 10.1, gdb 6.6


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]