From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12807 invoked by alias); 10 May 2002 19:49:21 -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 12784 invoked from network); 10 May 2002 19:49:19 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 10 May 2002 19:49:19 -0000 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 176GOE-00011f-00 for ; Fri, 10 May 2002 15:49:18 -0400 Date: Fri, 10 May 2002 12:49:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: RFA/testsuite: test break "marker2" Message-ID: <20020510194918.GA3893@nevyn.them.org> 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.1i X-SW-Source: 2002-05/txt/msg00359.txt.bz2 Elena pointed out that this doesn't seem to be in the testsuite anywhere. I'm considering writing unit tests for some of the linespec code... but until then, I'll just keep adding breakpoint tests. Is this OK? Should pass everywhere. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer 2002-05-10 Daniel Jacobowitz * gdb.base/break.exp: Check 'break "marker2"'. Index: testsuite/gdb.base/break.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/break.exp,v retrieving revision 1.11 diff -u -p -r1.11 break.exp --- testsuite/gdb.base/break.exp 7 Jan 2002 19:21:27 -0000 1.11 +++ testsuite/gdb.base/break.exp 10 May 2002 19:38:45 -0000 @@ -84,6 +84,13 @@ gdb_test "break main" \ "breakpoint function" # +# test break at quoted function +# +gdb_test "break \"marker2\"" \ + "Breakpoint.*at.* file .*$srcfile, line.*" \ + "breakpoint quoted function" + +# # test break at function in file # gdb_test "break $srcfile:factorial" \ @@ -150,6 +157,7 @@ if {$hp_aCC_compiler} { gdb_test "info break" \ "Num Type\[ \]+Disp Enb Address\[ \]+What.* \[0-9\]+\[\t \]+breakpoint keep y.* in main at .*$srcfile:$main_line.* +\[0-9\]+\[\t \]+breakpoint keep y.* in marker2 at .*$srcfile:4\[49\].* \[0-9\]+\[\t \]+breakpoint keep y.* in factorial$proto at .*$srcfile:96.* \[0-9\]+\[\t \]+breakpoint keep y.* in main at .*$srcfile:79.* \[0-9\]+\[\t \]+breakpoint keep y.* in main at .*$srcfile:79.* @@ -208,6 +216,11 @@ for {set i 6} {$i >= 1} {incr i -1} { "run until file:function($i) breakpoint" } +# +# Run until the breakpoint set at a quoted function +# +gdb_test continue "Continuing\\..*Breakpoint \[0-9\]+, (0x\[0-9a-f\]+ in )?marker2 \\(a=43\\) at .*$srcfile:4\[49\].*" \ + "run until quoted breakpoint" # # run until the file:function breakpoint at a line number in a file #