From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22798 invoked by alias); 20 Jan 2012 17:40:49 -0000 Received: (qmail 22623 invoked by uid 22791); 20 Jan 2012 17:40:47 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 20 Jan 2012 17:40:34 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1RoIS1-0004AL-PA from Yao_Qi@mentor.com ; Fri, 20 Jan 2012 09:40:33 -0800 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 20 Jan 2012 09:40:33 -0800 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.1.289.1; Fri, 20 Jan 2012 09:40:33 -0800 Message-ID: <4F19A711.6010505@codesourcery.com> Date: Fri, 20 Jan 2012 17:44:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111220 Thunderbird/9.0 MIME-Version: 1.0 To: Tom Tromey CC: Subject: Re: [4/4] RFC: implement catch load and catch unload References: In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-01/txt/msg00737.txt.bz2 On 01/19/2012 12:35 PM, Tom Tromey wrote: > + send_gdb "continue\n" > + gdb_expect { I am thinking why don't we use gdb_test_multiple here? > + -re "Catchpoint $decimal\r\n.*loaded .*/$testfile2.*\r\n.*$gdb_prompt $" { > + if {$match} { > + pass "continue" > + } else { > + fail "continue" > + } > + } > + > + -re "Stopped due to spurious shared library event .no libraries added or removed.\r\n$gdb_prompt $" { > + if {$sostop} { > + pass "continue" > + } else { > + fail "continue" > + } > + } > + > + -re "Breakpoint $decimal, .*\r\n$gdb_prompt $" { > + if {!$match} { > + pass "continue" > + } else { > + fail "continue" > + } > + } -- Yao (齐尧)