From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2539 invoked by alias); 21 Oct 2004 03:38:01 -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 2530 invoked from network); 21 Oct 2004 03:38:00 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 21 Oct 2004 03:38:00 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CKTPG-0005ft-DJ; Wed, 20 Oct 2004 23:14:26 -0400 Date: Thu, 21 Oct 2004 03:38:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA/testsuite/ada] Refine expected output of start command Message-ID: <20041021031426.GA21735@nevyn.them.org> Mail-Followup-To: Joel Brobecker , gdb-patches@sources.redhat.com References: <20041021024914.GO21300@gnat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041021024914.GO21300@gnat.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-10/txt/msg00351.txt.bz2 On Wed, Oct 20, 2004 at 07:49:15PM -0700, Joel Brobecker wrote: > Hello, > > While refreshing my memory on how the start command is implemented, > I found that it would currently only work with stabs. This concerns > Ada only, as this is the only language that I remember of that has > a main procedure name that's different from "main". > > Anyway, so I checked out the results of gdb.ada/null_record.exp which > I thought were an all PASS. And it is. It's just that the regexp > used to match the expected output is not stringent enough. Basically, > since the current mechanism doesn't work with dwarf2, GDB sets the > temporary breakpoint inside "main", rather than "null_record". > So we get this output: Actually, it's been failing for me for a maybe related reason: (gdb) start Breakpoint 1 at 0x8048ad0: file b~null_record.adb, line 99. Starting program: /opt/src/binutils/x86-as/gdb/testsuite/gdb.ada/null_record main (argc=1, argv=(system.address) 0xbffff524, envp=(system.address) 0xbffff52c) at b~null_record.adb:99 99 Ensure_Reference : System.Address := Ada_Main_Program_Name'Address; (gdb) PASS: gdb.ada/null_record.exp: start ptype empty type = function return int (gdb) FAIL: gdb.ada/null_record.exp: ptype on null record > 2004-10-20 Joel Brobecker > > * gdb.ada/null_record.exp: Check where we stopped after > sending the start command, instead of where the associated > temporary breakpoint was inserted. > > This causes the "start" test above to FAIL for now. But the fix for > this should be available soon. > > OK to commit? (I verified that this PASSes again once I apply my fix) This is OK. -- Daniel Jacobowitz