From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13742 invoked by alias); 12 Mar 2003 15:21:10 -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 13731 invoked from network); 12 Mar 2003 15:21:10 -0000 Received: from unknown (HELO localhost.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 12 Mar 2003 15:21:10 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 69CFC2B11; Wed, 12 Mar 2003 10:21:10 -0500 (EST) Message-ID: <3E6F5066.6030405@redhat.com> Date: Wed, 12 Mar 2003 15:21: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> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-03/txt/msg00177.txt.bz2 > 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. Andrew