From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2907 invoked by alias); 8 Feb 2002 02:38:04 -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 2831 invoked from network); 8 Feb 2002 02:38:03 -0000 Received: from unknown (HELO localhost.redhat.com) (24.114.26.18) by sources.redhat.com with SMTP; 8 Feb 2002 02:38:03 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 28F183E60; Thu, 7 Feb 2002 21:38:02 -0500 (EST) Message-ID: <3C633A0A.1040906@cygnus.com> Date: Thu, 07 Feb 2002 18:38:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.7) Gecko/20020103 X-Accept-Language: en-us MIME-Version: 1.0 To: Richard.Earnshaw@arm.com Cc: gdb@sources.redhat.com Subject: Re: multi-arch debug doesn't dump definitions as requested References: <200202061733.RAA03457@cam-mail2.cambridge.arm.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-02/txt/msg00124.txt.bz2 > According to > http://sources.redhat.com/gdb/papers/multi-arch/howto.html > > Rebuild and then run GDB vis: > > gdb/gdb > (gdb) > (gdb) set archdebug 1 > (gdb) file x-y-z > .... > > If all goes well, gdb will report the current value of all the > architecture dependent macro's. At this stage must are still > being taken from hardwired definitions in your > tm-XXX.h file. Failing that, an internal error message > reporting an uninitialised architecture vector member will be > reported. > > Except that that doesn't happen. All I get is > > (gdb) set archdebug 1 > Warning: command 'set archdebug' is deprecated. > Use 'set debug arch'. > > (gdb) file gdb > gdbarch_update: info.bfd_arch_info arm > gdbarch_update: info.byte_order 1 (little) > gdbarch_update: info.abfd 0x1d2e00 > gdbarch_update: info.tdep_info 0x0 > gdbarch_update: Architecture 0x001d3000 (arm) unchanged > Reading symbols from gdb...done. > > Note, "set debug arch 1" doesn't do anything different either. > > How about a "maint" (or maint info) command? Try: (gdb) maint print architecture [ ] and look at sizeof.exp. The lack of output comes, at least in part, because it isn't possible to print the macros/values safely. Andrew