From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20878 invoked by alias); 17 Aug 2005 03:18:30 -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 20100 invoked by uid 22791); 17 Aug 2005 03:17:21 -0000 Received: from eastrmmtao02.cox.net (HELO eastrmmtao02.cox.net) (68.230.240.37) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 17 Aug 2005 03:17:21 +0000 Received: from white ([68.9.64.121]) by eastrmmtao02.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050817031716.WGBU29959.eastrmmtao02.cox.net@white> for ; Tue, 16 Aug 2005 23:17:16 -0400 Received: from bob by white with local (Exim 3.36 #1 (Debian)) id 1E5EQY-0003Wo-00 for ; Tue, 16 Aug 2005 23:17:18 -0400 Date: Wed, 17 Aug 2005 15:09:00 -0000 From: Bob Rossi To: gdb-patches@sources.redhat.com Subject: MI testsuite mi-until.exp failures Message-ID: <20050817031718.GA13485@white> Mail-Followup-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i X-SW-Source: 2005-08/txt/msg00197.txt.bz2 Hi, Using gcc 4.0, I get error's with the mi-until.exp and mi2-until.exp testcases. The first issue is trivial. The file mi-var-child.c needed '#include ' in order for the file to compile because of memset. Is string.h appropriate for this? I know memset can be in different headers on different systems. Also, for some reason, the line number was different. So, either it's OK for the line number to be different and this patch is OK, or it's not OK for the line number to be different and this patch is bad. Any ideas? Thanks, Bob Rossi Index: src/gdb/testsuite/ChangeLog + * gdb.mi/mi-until.exp: Change hard coded number to regex for number. + * gdb.mi/mi2-until.exp: Ditto. + * gdb.mi/mi-var-child.c: Add #include . Index: gdb/testsuite/gdb.mi/mi-until.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-until.exp,v retrieving revision 1.9 diff -u -r1.9 mi-until.exp --- gdb/testsuite/gdb.mi/mi-until.exp 18 May 2005 03:41:59 -0000 1.9 +++ gdb/testsuite/gdb.mi/mi-until.exp 17 Aug 2005 03:08:37 -0000 @@ -78,7 +78,7 @@ send_gdb "111-exec-until\n" gdb_expect { - -re "111\\^running\r\n${mi_gdb_prompt}111\\*stopped,reason=\"end-stepping-range\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"12\"\}\r\n$mi_gdb_prompt$" { + -re "111\\^running\r\n${mi_gdb_prompt}111\\*stopped,reason=\"end-stepping-range\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"\[0-9\]+\"\}\r\n$mi_gdb_prompt$" { pass "until after while loop" } timeout { Index: gdb/testsuite/gdb.mi/mi-var-child.c =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-var-child.c,v retrieving revision 1.2 diff -u -r1.2 mi-var-child.c --- gdb/testsuite/gdb.mi/mi-var-child.c 31 Jul 2005 22:10:53 -0000 1.2 +++ gdb/testsuite/gdb.mi/mi-var-child.c 17 Aug 2005 03:08:37 -0000 @@ -18,6 +18,7 @@ Boston, MA 02111-1307, USA. */ #include +#include struct _simple_struct { int integer; Index: gdb/testsuite/gdb.mi/mi2-until.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi2-until.exp,v retrieving revision 1.3 diff -u -r1.3 mi2-until.exp --- gdb/testsuite/gdb.mi/mi2-until.exp 18 May 2005 03:41:59 -0000 1.3 +++ gdb/testsuite/gdb.mi/mi2-until.exp 17 Aug 2005 03:08:37 -0000 @@ -79,7 +79,7 @@ send_gdb "111-exec-until\n" gdb_expect { - -re "111\\^running\r\n${mi_gdb_prompt}111\\*stopped,reason=\"end-stepping-range\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"12\"\}\r\n$mi_gdb_prompt$" { + -re "111\\^running\r\n${mi_gdb_prompt}111\\*stopped,reason=\"end-stepping-range\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"\[0-9\]+\"\}\r\n$mi_gdb_prompt$" { pass "until after while loop" } timeout {