* Debugging 64bit x86 programs on Solaris
@ 2007-03-26 19:27 Alex Bennee
2007-03-26 19:41 ` Alex Bennee
0 siblings, 1 reply; 5+ messages in thread
From: Alex Bennee @ 2007-03-26 19:27 UTC (permalink / raw)
To: gdb
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Debugging 64bit x86 programs on Solaris
2007-03-26 19:27 Debugging 64bit x86 programs on Solaris Alex Bennee
@ 2007-03-26 19:41 ` Alex Bennee
2007-03-30 22:42 ` Mark Kettenis
0 siblings, 1 reply; 5+ messages in thread
From: Alex Bennee @ 2007-03-26 19:41 UTC (permalink / raw)
To: gdb
On Mon, 2007-03-26 at 20:27 +0100, Alex Bennee wrote:
> 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:
Just found it defaults to compiling a 32 bit app. Maybe the autoconf
magic should default to 64bit for Solaris/x86?
--
Alex Bennee - alexjb@transitive.com
"Microsoft is the epitome of innovation and product quality." -- This
testimonial paid for by Microsoft.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Debugging 64bit x86 programs on Solaris
2007-03-26 19:41 ` Alex Bennee
@ 2007-03-30 22:42 ` Mark Kettenis
2007-03-31 13:09 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Mark Kettenis @ 2007-03-30 22:42 UTC (permalink / raw)
To: alexjb; +Cc: gdb
> X-Spam-Check-By: sourceware.org
> From: Alex Bennee <alexjb@transitive.com>
> Date: Mon, 26 Mar 2007 20:41:10 +0100
> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm
> Sender: gdb-owner@sourceware.org
> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information.
> X-UTwente-MailScanner: Found to be clean
> X-UTwente-MailScanner-From: gdb-return-28238-m.m.kettenis=alumnus.utwente.nl@sourceware.org
> X-Spam-Status: No
> X-XS4ALL-DNSBL-Checked: mxdrop34.xs4all.nl checked 130.89.2.13 against DNS blacklists
> X-Virus-Scanned: by XS4ALL Virus Scanner
> X-XS4ALL-Spam-Score: -2.0 () DK_POLICY_SIGNSOME,RCVD_IN_NLWHITE
> X-XS4ALL-Spam: NO
> Envelope-To: mark.kettenis@xs4all.nl
> X-UIDL: 1174938103._smtp.mxdrop34.16308,S=3049
>
> On Mon, 2007-03-26 at 20:27 +0100, Alex Bennee wrote:
> > 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:
>
> Just found it defaults to compiling a 32 bit app. Maybe the autoconf
> magic should default to 64bit for Solaris/x86?
We cannot do that; there are 32-bit Solaris/x86 systems out there.
That said, in principle it should be possible to support debugging
64-bit executables with a 32-bit GDB on Solaris (which isn't possible
on Linux). This might need some changes in the code though.
Mark
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Debugging 64bit x86 programs on Solaris
2007-03-30 22:42 ` Mark Kettenis
@ 2007-03-31 13:09 ` Daniel Jacobowitz
2007-03-31 14:14 ` Mark Kettenis
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2007-03-31 13:09 UTC (permalink / raw)
To: Mark Kettenis; +Cc: alexjb, gdb
On Sat, Mar 31, 2007 at 12:42:25AM +0200, Mark Kettenis wrote:
> That said, in principle it should be possible to support debugging
> 64-bit executables with a 32-bit GDB on Solaris (which isn't possible
> on Linux). This might need some changes in the code though.
It would be easy to make it possible on Linux, though - at least PPC
and MIPS already support this though GDB does not yet take advantage
of it. Richard Henderson posted patches for the PPC bits a while ago.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Debugging 64bit x86 programs on Solaris
2007-03-31 13:09 ` Daniel Jacobowitz
@ 2007-03-31 14:14 ` Mark Kettenis
0 siblings, 0 replies; 5+ messages in thread
From: Mark Kettenis @ 2007-03-31 14:14 UTC (permalink / raw)
To: drow; +Cc: alexjb, gdb
> Date: Sat, 31 Mar 2007 09:09:14 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> On Sat, Mar 31, 2007 at 12:42:25AM +0200, Mark Kettenis wrote:
> > That said, in principle it should be possible to support debugging
> > 64-bit executables with a 32-bit GDB on Solaris (which isn't possible
> > on Linux). This might need some changes in the code though.
>
> It would be easy to make it possible on Linux, though - at least PPC
> and MIPS already support this though GDB does not yet take advantage
> of it. Richard Henderson posted patches for the PPC bits a while ago.
Yup, I should have said x86 Linux.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-03-31 14:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-26 19:27 Debugging 64bit x86 programs on Solaris Alex Bennee
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox