From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14644 invoked by alias); 26 Mar 2007 19:27:53 -0000 Received: (qmail 14623 invoked by uid 22791); 26 Mar 2007 19:27:51 -0000 X-Spam-Check-By: sourceware.org Received: from mx.transitive.com (HELO pennyblack.transitives.com) (217.207.128.220) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 26 Mar 2007 20:27:42 +0100 Received: from [192.168.1.82] (helo=[192.168.1.82]) by pennyblack.transitives.com with esmtp (Exim 4.50) id 1HVuiY-00066h-30 for gdb@sourceware.org; Mon, 26 Mar 2007 19:18:58 +0000 Subject: Debugging 64bit x86 programs on Solaris From: Alex Bennee To: gdb@sourceware.org Content-Type: text/plain Date: Mon, 26 Mar 2007 19:27:00 -0000 Message-Id: <1174937257.27206.97.camel@okra.transitives.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00315.txt.bz2 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.