From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17522 invoked by alias); 24 Feb 2003 21:19:13 -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 17515 invoked from network); 24 Feb 2003 21:19:12 -0000 Received: from unknown (HELO mallaury.noc.nerim.net) (62.4.17.102) by 172.16.49.205 with SMTP; 24 Feb 2003 21:19:12 -0000 Received: from nerim.fr (stcarrez.net1.nerim.net [62.212.108.40]) by mallaury.noc.nerim.net (Postfix) with ESMTP id 55BB062E1C; Mon, 24 Feb 2003 22:19:09 +0100 (CET) Message-ID: <3E5A8C4F.7020000@nerim.fr> Date: Mon, 24 Feb 2003 21:19:00 -0000 From: Stephane Carrez User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3 X-Accept-Language: en-us MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [RFA]: Fix testsuite/gdb.base/break.exp when test compiled with -DPROTOTYPES Content-Type: multipart/mixed; boundary="------------030503030506090503070109" X-SW-Source: 2003-02/txt/msg00604.txt.bz2 This is a multi-part message in MIME format. --------------030503030506090503070109 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 502 Hi! In the gdb.base/break.c test, the function marker4() is defined at line 46 when the test is compiled with -DPROTOTYPES and at line 51 otherwise. The break.exp test only check for line 51. This patch adds the missing regexp for marker4 at line 46. (tested with make check for m6811-elf; break.exp passes completely) Can you approve it? Thanks, Stephane 2003-02-24 Stephane Carrez * gdb.base/break.exp: marker4() is defined at line 46 when compiled with -DPROTOTYPES. --------------030503030506090503070109 Content-Type: text/plain; name="break.exp.diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="break.exp.diffs" Content-length: 1169 Index: gdb.base/break.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/break.exp,v retrieving revision 1.14 diff -u -p -r1.14 break.exp --- gdb.base/break.exp 16 Jan 2003 01:56:15 -0000 1.14 +++ gdb.base/break.exp 24 Feb 2003 21:13:24 -0000 @@ -907,11 +907,16 @@ if ![target_info exists use_gdb_stub] { # as if it were in the middle of a line rather than at the beginning. send_gdb "continue\n" +# marker4() is defined at line 46 when compiled with -DPROTOTYPES +# and at line 51 otherwise. gdb_expect { -re "Breakpoint $decimal, marker4 \\(d=177601976\\) at .*$srcfile:51\[\r\n\]+51\[\t \]+void marker4.*" { pass "run until breakpoint set at small function, optimized file" } -re "Breakpoint $decimal, $hex in marker4 \\(d=177601976\\) at .*$srcfile:51\[\r\n\]+51\[\t \]+void marker4.*" { + pass "run until breakpoint set at small function, optimized file" + } + -re "Breakpoint $decimal, marker4 \\(d=177601976\\) at .*$srcfile:46\[\r\n\]+46\[\t \]+void marker4.*" { pass "run until breakpoint set at small function, optimized file" } -re ".*$gdb_prompt " { --------------030503030506090503070109--