From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31077 invoked by alias); 12 Aug 2002 18:51:09 -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 31070 invoked from network); 12 Aug 2002 18:51:08 -0000 Received: from unknown (HELO mail1.utc.com) (192.249.46.37) by sources.redhat.com with SMTP; 12 Aug 2002 18:51:08 -0000 Received: (from uucp@localhost) by mail1.utc.com (8.10.0/8.10.0) id g7CIp5k06177 for ; Mon, 12 Aug 2002 14:51:05 -0400 (EDT) Received: from uusnwa0p.utc.com(159.82.80.106) by mail1.utc.com via csmap (V6.0) id srcAAAdaaG9l; Mon, 12 Aug 02 14:51:05 -0400 Received: from ronbo.sikorsky.com (ronbo.sikorsky.com [140.76.12.150]) by uusnwa0p.utc.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id g7CIoxv12673 for ; Mon, 12 Aug 2002 14:50:59 -0400 (EDT) Received: (from s29299@localhost) by ronbo.sikorsky.com (8.11.6+Sun/8.11.6) id g7CIorX15468 for gdb@sources.redhat.com; Mon, 12 Aug 2002 14:50:53 -0400 (EDT) X-Authentication-Warning: ronbo.sikorsky.com: s29299 set sender to rmccall@sikorsky.com using -f Date: Mon, 12 Aug 2002 11:51:00 -0000 From: Ron McCall To: GDB Mailing List Subject: Re: Architectures and PSIM Message-ID: <20020812145052.A15460@sikorsky.com> Mail-Followup-To: GDB Mailing List References: <20020812131719.A28734@sikorsky.com> <15703.61966.94242.687658@localhost.redhat.com> <20020812134341.A28867@sikorsky.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020812134341.A28867@sikorsky.com>; from rmccall@sikorsky.com on Mon, Aug 12, 2002 at 01:43:41PM -0400 X-SW-Source: 2002-08/txt/msg00111.txt.bz2 Elena, Looks like the latest CVS version works! I did the following: bash$ powerpc-eabi-gdb main.elf (gdb) target sim -f psim.tree (gdb) set architecture powerpc:603 (gdb) load main.elf (gdb) break main (gdb) run (gdb) info all-registers At this point, I see r0-r31, f0-f31, pc, ps, cr, lr, ctr, xer, fpscr, sr0-sr15, pvr, ibat0u-ibat3u, ibat0l-ibat3l, dbat0u-dbat3u, ibat0l-ibat3l, sdr1, dar, dsisr, sprg0-sprg3, srr0, srr1, tbl, tbu, dec, dadr, ear, hid0, hid1, iabr, dmiss, dcmp, hash1, hash2, imiss, icmp and rpa. This is exactly what I needed. Thank you so much for the tip! Ron McCall On Mon, Aug 12, 2002 at 01:43:41PM -0400, Ron McCall wrote: > Sure, I will give the latest cvs version a try and will report back the > results. Thanks! > > Ron McCall > > On Mon, Aug 12, 2002 at 01:36:14PM -0400, Elena Zannoni wrote: > > I am no expert on the uses of psim, so I cannot really help with the > > device tree, etc. But.... > > > > I have seen the behavior above, (gdb not listing the correct set of > > available architectures), could you try the current cvs main line > > instead? > > > > Note that psim will not digest a connection from gdb *after* the > > architecture has been explicitly set by the set architecture command. > > You should first connect, then change the architecture. > > > > There are 2 patches that I committed to main trunk gdb and I don't > > think were included in 5.2.1: > > > > this one stops psim from complaining about lack of altivec registers: > > http://sources.redhat.com/ml/gdb-patches/2002-04/msg00535.html > > > > this one makes psim understand the architecture parameter set by gdb > > before connection: > > http://sources.redhat.com/ml/gdb-patches/2002-06/msg00305.html > > > > Elena -- Ron McCall Sikorsky Aircraft 203-386-4695 rmccall@sikorsky.com