Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Shane G <pachoo@gmail.com>
To: gdb@sourceware.org
Subject: Problem viewing gcore of 32 bit binary on 64 bit SLES 10.1, gdb 6.6
Date: Mon, 02 Mar 2009 23:01:00 -0000	[thread overview]
Message-ID: <985ad4e70903021500u594a4c4w30eff9ae287f5e8d@mail.gmail.com> (raw)

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.


             reply	other threads:[~2009-03-02 23:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-02 23:01 Shane G [this message]
2009-03-02 23:10 ` Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=985ad4e70903021500u594a4c4w30eff9ae287f5e8d@mail.gmail.com \
    --to=pachoo@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox