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]

Debugging 64bit x86 programs on Solaris


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.


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