From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24282 invoked by alias); 4 Sep 2008 20:53:42 -0000 Received: (qmail 24273 invoked by uid 22791); 4 Sep 2008 20:53:42 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 04 Sep 2008 20:53:04 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.64.160]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 6943821007 for ; Thu, 4 Sep 2008 13:53:02 -0700 (PDT) Received: from [10.20.92.218] (promb-2s-dhcp218.eng.vmware.com [10.20.92.218]) by mailhost2.vmware.com (Postfix) with ESMTP id 5E4A78E59F for ; Thu, 4 Sep 2008 13:53:02 -0700 (PDT) Message-ID: <48C04A98.3020508@vmware.com> Date: Thu, 04 Sep 2008 20:53:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: "gdb-patches@sourceware.org" Subject: [RFA] gdb_continue_to_breakpoint Content-Type: multipart/mixed; boundary="------------090000030905040704030409" 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: 2008-09/txt/msg00073.txt.bz2 This is a multi-part message in MIME format. --------------090000030905040704030409 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 350 This one-line change affects two changes that make gdb_continue_to_breakpoint more useful. 1) If we accept "Breakpoint in" as well as "Breakpoint at", then it will work for non-debug functions. 2) If we accept trailing text after the $location_pattern, then we are not forced to include a location pattern that takes us up to the end of the line. --------------090000030905040704030409 Content-Type: text/plain; name="lib.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lib.txt" Content-length: 789 2008-09-04 Michael Snyder * lib/gdb.exp (gdb_continue_to_breakpoint): Accept "in" as well as "at" (for non-debug functions such as _start). Also accept trailing text after $location_pattern. Index: lib/gdb.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v retrieving revision 1.105 diff -u -p -r1.105 gdb.exp --- lib/gdb.exp 15 Aug 2008 15:18:34 -0000 1.105 +++ lib/gdb.exp 4 Sep 2008 20:47:58 -0000 @@ -456,7 +456,7 @@ proc gdb_continue_to_breakpoint {name {l send_gdb "continue\n" gdb_expect { - -re "Breakpoint .* at $location_pattern\r\n$gdb_prompt $" { + -re "Breakpoint .* (at|in) $location_pattern.*$gdb_prompt $" { pass $full_name } -re ".*$gdb_prompt $" { --------------090000030905040704030409--