From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31091 invoked by alias); 8 Feb 2002 10:41:58 -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 30872 invoked from network); 8 Feb 2002 10:41:55 -0000 Received: from unknown (HELO cerbere.u-strasbg.fr) (130.79.112.7) by sources.redhat.com with SMTP; 8 Feb 2002 10:41:55 -0000 Received: from laocoon (laocoon.u-strasbg.fr [130.79.112.72]) by cerbere.u-strasbg.fr (8.9.3/8.8.7) with ESMTP id LAA20478; Fri, 8 Feb 2002 11:41:44 +0100 Message-Id: <4.2.0.58.20020208113517.00acf888@ics.u-strasbg.fr> X-Sender: muller@ics.u-strasbg.fr X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Fri, 08 Feb 2002 02:41:00 -0000 To: Richard.Earnshaw@arm.com, Andrew Cagney From: Pierre Muller Subject: Re: multi-arch debug doesn't dump definitions as requested Cc: gdb@sources.redhat.com In-Reply-To: <200202081021.KAA01070@cam-mail2.cambridge.arm.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-SW-Source: 2002-02/txt/msg00129.txt.bz2 At 11:21 08/02/2002 , Richard Earnshaw a écrit: > > > > 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 > >Thanks. Shouldn't http://sources.redhat.com/gdb/papers/multi-arch/howto.ht >ml be updated to show this. At present it says: > >Add: > >#ifndef GDB_MULTI_ARCH >#define GDB_MULTI_ARCH 1 >#endif > >to the top of your tm-XXX.h file. 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. ... I made a simple test on a recent cygwin native gdb built from CVS tree. >(gdb) set archdebug 1 (gdb) set archdebug 1 Warning: command 'set archdebug' is deprecated. Use 'set debug arch'. Maybe this should also be changed on html, unless there are still some hidden differences... afterr setting debug arch to 1 (gdb) file ./gdb gdbarch_update: info.bfd_arch_info i386 gdbarch_update: info.byte_order 1 (little) gdbarch_update: info.abfd 0xa035030 gdbarch_update: info.tdep_info 0x0 gdbarch_update: Architecture 0x0a0281f0 (i386) unchanged Reading symbols from ./gdb...done. Is this all that is defined in i386-tdep.c ? I see more set_gdbarch_**** calls in i386-tdep.c source, but they are not reflected here.... If I try to set debug arch to higher values I get lots of output, but not much understandable... Pierre Muller Institut Charles Sadron 6,rue Boussingault F 67083 STRASBOURG CEDEX (France) mailto:muller@ics.u-strasbg.fr Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99