From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8061 invoked by alias); 19 Apr 2004 18:06:38 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8050 invoked from network); 19 Apr 2004 18:06:36 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 19 Apr 2004 18:06:36 -0000 Received: from drow by nevyn.them.org with local (Exim 4.32 #1 (Debian)) id 1BFdAB-0000G2-MR; Mon, 19 Apr 2004 14:06:35 -0400 Date: Mon, 19 Apr 2004 18:06:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: Jim Blandy , gdb-patches@sources.redhat.com Subject: Re: [RFA] Fix small problems in rs6000-tdep.c:skip_prologue() Message-ID: <20040419180635.GA928@nevyn.them.org> Mail-Followup-To: Joel Brobecker , Jim Blandy , gdb-patches@sources.redhat.com References: <20040402183637.GC871@gnat.com> <20040417051545.GO22414@gnat.com> <20040417143940.GA7428@nevyn.them.org> <20040419175339.GA22414@gnat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040419175339.GA22414@gnat.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-04/txt/msg00437.txt.bz2 On Mon, Apr 19, 2004 at 10:53:39AM -0700, Joel Brobecker wrote: > > I'd prefer that you add them to gdb.asm, unless it's likely to produce > > strange prologues on other architectures. > > I looked at the gdb.asm subdirectory, and found only one test there: > asm-source.exp. It doesn't look like this testcase would be the correct > location where to add a test for this prologue. > > So should I add a new testcase? This testcase would only be activated > for powerpc*-*-* targets. > > In terms of the code, I would just dump the assembly code for the > function in question into an .s file. To perform the link, I'm tempted > between do it all in asm (just as we do in asm-source.exp), or see > if it is simpler if I use a C main... > > All the testcase would do is: Build the executable, load it, and then > insert a breakpoint in my function. > > Am I on the right track? > > BTW: I can't find the collection of SH prologues that Daniel was > refering to... That's because I was confused - I meant gdb.arch. Take a look at gdb1431.exp. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer