From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10370 invoked by alias); 31 Mar 2003 05:46:08 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10362 invoked from network); 31 Mar 2003 05:46:07 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.166.107) by sources.redhat.com with SMTP; 31 Mar 2003 05:46:07 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 67A502B23; Mon, 31 Mar 2003 00:45:52 -0500 (EST) Message-ID: <3E87D610.6010403@redhat.com> Date: Mon, 31 Mar 2003 05:46:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mikhail Teterin Cc: gdb@sources.redhat.com Subject: Re: More on the Solaris 64 bit troubles References: <200303112155.48503.mi+mx@aldan.algebra.com> <3E6F5066.6030405@redhat.com> <200303121027.01420@aldan> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-03/txt/msg00409.txt.bz2 > On Wednesday 12 March 2003 10:21 am, Andrew Cagney wrote: > = > It happens when I try to use the 64-bit compiled gdb executable to debug > = > a 32-bit executable. I don't see why this should not work... > = > > = > It dies, because when the second gdbarch structure is initialized > = > (don't why it does it twice) the set_gdbarch_num_regs is not called and > = > num_regs fields stays at the unitialized -1 :-( > = > = At present, on Solaris, the only way to debug a 32 bit executable is to > = build a 32 bit GDB. GDB needs something (thread library?) and that only > = works when built/linked 32 bit on a 32 bit executable. > > Thanks! I'll try that. Too bad, because all my Tcl (itcl, tix, etc.) > are built for 64-bit, so I'll have to build a standalone insight-only > distributions instead of sharing them. > > However, it seems to be dying long before getting to the thread library. > > While trying to use the second `struct gdbarch' -- why does it need more > than one anyway? > > Also I have a bunch of patches for 5.3, which remove warnings raised by > the Solaris' compiler (and a couple of bugs uncovered through them). > Should I post them here, or send to someone directly? Hmm, an update. I've been corrected. Apparently 64 bit GDB: CFLAGS='-g -m64 -O' .../configure is ment to be able to debug either a 32 or 64 bit binary, so there has been bit rot :-( Andrew