Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Alex Bennee <kernel-hacker@bennee.com>
To: gdb@sourceware.org
Subject: Debugging 64bit x86 programs on Solaris
Date: Mon, 26 Mar 2007 19:27:00 -0000	[thread overview]
Message-ID: <1174937257.27206.97.camel@okra.transitives.com> (raw)

Hi,

Is 64 bit debugging on x86 Solaris broken? I've built the latest gdb
from CVS but it seems to have real trouble with 64bit programs or
reading core files:

/usr/local/bin/gdb program
GNU gdb 6.6.50.20070326-cvs
Copyright (C) 2007 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 ""...
(gdb) r
Starting program: program
procfs:4285 -- process not stopped.
procfs: ...giving up...
(gdb) q

Or trying a core file:

/usr/local/bin/gdb program core
GNU gdb 6.6.50.20070326-cvs
Copyright (C) 2007 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 ""...
Reading symbols from /lib/amd64/libpthread.so.1...
warning: Lowest section in /lib/amd64/libpthread.so.1 is .dynamic at
00000000000000b0
done.
Loaded symbols for /lib/64/libpthread.so.1
Reading symbols from /lib/amd64/libsocket.so.1...done.
Loaded symbols for /lib/64/libsocket.so.1
Reading symbols from /lib/amd64/libnsl.so.1...done.
Loaded symbols for /lib/64/libnsl.so.1
Reading symbols from /lib/amd64/libscf.so.1...done.
Loaded symbols for /lib/64/libscf.so.1
Reading symbols from /lib/amd64/libuutil.so.1...done.
Loaded symbols for /lib/64/libuutil.so.1
Reading symbols from /lib/amd64/libmp.so.2...done.
Loaded symbols for /lib/64/libmp.so.2
Reading symbols from /lib/amd64/libmd5.so.1...done.
Loaded symbols for /lib/64/libmd5.so.1
Reading symbols from /lib/amd64/librt.so.1...done.
Loaded symbols for /lib/64/librt.so.1
Reading symbols from /lib/amd64/libaio.so.1...done.
Loaded symbols for /lib/64/libaio.so.1
Reading symbols from /lib/amd64/libdl.so.1...done.
Loaded symbols for /lib/64/libdl.so.1
Reading symbols from /usr/sfw/lib/amd64/libstdc++.so.6...done.
Loaded symbols for /usr/sfw/lib/amd64/libstdc++.so.6
Reading symbols from /lib/amd64/libm.so.2...done.
Loaded symbols for /lib/64/libm.so.2
Reading symbols from /usr/sfw/lib/amd64/libgcc_s.so.1...done.
Loaded symbols for /usr/sfw/lib/amd64/libgcc_s.so.1
Reading symbols from /lib/amd64/libc.so.1...done.

warning: sol_thread_new_objfile: td_ta_new: Debugger service failed
Loaded symbols for /lib/64/libc.so.1
Reading symbols from /lib/amd64/libdoor.so.1...done.

warning: sol_thread_new_objfile: td_ta_new: Debugger service failed
Loaded symbols for /lib/64/libdoor.so.1
Reading symbols from /lib/amd64/ld.so.1...done.

warning: sol_thread_new_objfile: td_ta_new: Debugger service failed
Loaded symbols for /lib/amd64/ld.so.1

warning: Couldn't find general-purpose registers in core file.

warning: Couldn't find general-purpose registers in core file.
#0  0x0000000000000000 in ?? ()
(gdb) 

32bit programs seem to work ok.

Any ideas?

I built native on with a Solaris 10/x86_64 box with straight
configure/make options.

-- 
Alex, homepage: http://www.bennee.com/~alex/
If you can lead it to water and force it to drink, it isn't a horse.


             reply	other threads:[~2007-03-26 19:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-26 19:27 Alex Bennee [this message]
2007-03-26 19:41 ` Alex Bennee
2007-03-30 22:42   ` Mark Kettenis
2007-03-31 13:09     ` Daniel Jacobowitz
2007-03-31 14:14       ` Mark Kettenis

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=1174937257.27206.97.camel@okra.transitives.com \
    --to=kernel-hacker@bennee.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