From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1117 invoked by alias); 2 Jun 2010 20:18:10 -0000 Received: (qmail 1073 invoked by uid 22791); 2 Jun 2010 20:18:07 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Jun 2010 20:18:01 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.67.167]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 3A2E540011 for ; Wed, 2 Jun 2010 13:18:00 -0700 (PDT) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost2.vmware.com (Postfix) with ESMTP id 2D8F18E858 for ; Wed, 2 Jun 2010 13:18:00 -0700 (PDT) Message-ID: <4C06BC77.9040300@vmware.com> Date: Wed, 02 Jun 2010 20:18:00 -0000 From: Michael Snyder User-Agent: Thunderbird 2.0.0.22 (X11/20090609) MIME-Version: 1.0 To: "gdb-patches@sourceware.org" Subject: [RFA] gdb.python, gdb.reverse, gdb.server, use gdb_test_no_output Content-Type: multipart/mixed; boundary="------------080400090308020700010503" 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: 2010-06/txt/msg00056.txt.bz2 This is a multi-part message in MIME format. --------------080400090308020700010503 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 0 --------------080400090308020700010503 Content-Type: text/plain; name="python.exp.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="python.exp.txt" Content-length: 6856 2010-06-02 Michael Snyder * gdb.python/py-block.exp: Use gdb_test_no_output. * gdb.python/py-prettyprint.exp: Ditto. * gdb.python/py-template.exp: Ditto. * gdb.python/py-value.exp: Ditto. * gdb.reverse/watch-precsave.exp: Use gdb_test_no_output. * gdb.reverse/watch-reverse.exp: Ditto. * gdb.server/ext-attach.exp: Use gdb_test_no_output. * gdb.server/ext-run.exp: Ditto. Index: gdb.python/py-block.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.python/py-block.exp,v retrieving revision 1.1 diff -u -p -r1.1 py-block.exp --- gdb.python/py-block.exp 24 Feb 2010 21:18:28 -0000 1.1 +++ gdb.python/py-block.exp 2 Jun 2010 20:11:47 -0000 @@ -66,9 +66,9 @@ gdb_test "python print block.start" "${d gdb_test "python print block.end" "${decimal}" "Check end not None" # Move up superblock(s) until we reach function block_func. -gdb_test "python block = block.superblock" "" "Get superblock" +gdb_test_no_output "python block = block.superblock" "Get superblock" gdb_test "python print block.function" "None" "Second anonymous block" -gdb_test "python block = block.superblock" "" "Get superblock" +gdb_test_no_output "python block = block.superblock" "Get superblock 2" gdb_test "python print block.function" "block_func" # Switch frames, then test for main block. Index: gdb.python/py-prettyprint.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.python/py-prettyprint.exp,v retrieving revision 1.8 diff -u -p -r1.8 py-prettyprint.exp --- gdb.python/py-prettyprint.exp 14 Apr 2010 12:02:46 -0000 1.8 +++ gdb.python/py-prettyprint.exp 2 Jun 2010 20:11:47 -0000 @@ -63,7 +63,7 @@ proc run_lang_tests {lang} { return } - gdb_test "set print pretty on" "" + gdb_test_no_output "set print pretty on" gdb_test "b [gdb_get_line_number {break to inspect} ${testfile}.c ]" \ ".*Breakpoint.*" @@ -71,7 +71,7 @@ proc run_lang_tests {lang} { set remote_python_file [remote_download host ${srcdir}/${subdir}/${testfile}.py] - gdb_test "python execfile ('${remote_python_file}')" "" + gdb_test_no_output "python execfile ('${remote_python_file}')" gdb_test "print ss" " = a=< a=<1> b=<$hex>> b=< a=<2> b=<$hex>>" gdb_test "print ssa\[1\]" " = a=< a=<5> b=<$hex>> b=< a=<6> b=<$hex>>" Index: gdb.python/py-template.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.python/py-template.exp,v retrieving revision 1.3 diff -u -p -r1.3 py-template.exp --- gdb.python/py-template.exp 24 Feb 2010 11:11:16 -0000 1.3 +++ gdb.python/py-template.exp 2 Jun 2010 20:11:47 -0000 @@ -53,7 +53,7 @@ proc test_template_arg {type} { } # There is no executable code in main(), so we are where we want to be gdb_test "print foo" "" - gdb_test "python foo = gdb.history(0)" "" + gdb_test_no_output "python foo = gdb.history(0)" # Replace '*' with '\*' in regex. regsub -all {\*} $type {\*} t Index: gdb.python/py-value.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.python/py-value.exp,v retrieving revision 1.9 diff -u -p -r1.9 py-value.exp --- gdb.python/py-value.exp 14 May 2010 11:11:28 -0000 1.9 +++ gdb.python/py-value.exp 2 Jun 2010 20:11:47 -0000 @@ -116,7 +116,7 @@ proc test_value_numeric_ops {} { # Conversion test. gdb_test "print evalue" " = TWO" - gdb_test "python evalue = gdb.history (0)" "" + gdb_test_no_output "python evalue = gdb.history (0)" gdb_test "python print int (evalue)" "2" # Test pointer arithmethic Index: gdb.reverse/watch-precsave.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.reverse/watch-precsave.exp,v retrieving revision 1.4 diff -u -p -r1.4 watch-precsave.exp --- gdb.reverse/watch-precsave.exp 28 May 2010 18:26:41 -0000 1.4 +++ gdb.reverse/watch-precsave.exp 2 Jun 2010 20:11:47 -0000 @@ -139,7 +139,7 @@ gdb_test "continue" \ ".*\[Ww\]atchpoint.*ival3.*Old value = 0.*New value = -1.*ival3 = count; ival4 = count;.*" \ "watchpoint hit in reverse, fifth time" -gdb_test "set can-use-hw-watchpoints 1" "" "enable hw watchpoints" +gdb_test_no_output "set can-use-hw-watchpoints 1" "enable hw watchpoints" ### ### Index: gdb.reverse/watch-reverse.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.reverse/watch-reverse.exp,v retrieving revision 1.5 diff -u -p -r1.5 watch-reverse.exp --- gdb.reverse/watch-reverse.exp 28 May 2010 18:26:41 -0000 1.5 +++ gdb.reverse/watch-reverse.exp 2 Jun 2010 20:11:47 -0000 @@ -38,7 +38,7 @@ if [target_info exists gdb,use_precord] } # Test software watchpoints -gdb_test "set can-use-hw-watchpoints 0" "" "disable hw watchpoints" +gdb_test_no_output "set can-use-hw-watchpoints 0" "disable hw watchpoints" gdb_test "break marker1" \ "Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \ @@ -121,7 +121,7 @@ gdb_test "continue" \ ".*\[Ww\]atchpoint.*ival3.*Old value = 0.*New value = -1.*ival3 = count; ival4 = count;.*" \ "watchpoint hit in reverse, fifth time" -gdb_test "set can-use-hw-watchpoints 1" "" "enable hw watchpoints" +gdb_test_no_output "set can-use-hw-watchpoints 1" "enable hw watchpoints" ### ### Index: gdb.server/ext-attach.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.server/ext-attach.exp,v retrieving revision 1.6 diff -u -p -r1.6 ext-attach.exp --- gdb.server/ext-attach.exp 12 Jan 2010 00:50:26 -0000 1.6 +++ gdb.server/ext-attach.exp 2 Jun 2010 20:11:47 -0000 @@ -45,7 +45,7 @@ gdb_reinitialize_dir $srcdir/$subdir set target_exec [gdbserver_download_current_prog] gdbserver_start_extended -gdb_test "set remote exec-file $target_exec" "" "set remote exec-file" +gdb_test_no_output "set remote exec-file $target_exec" "set remote exec-file" # Start the program running and then wait for a bit, to be sure # that it can be attached to. Index: gdb.server/ext-run.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.server/ext-run.exp,v retrieving revision 1.8 diff -u -p -r1.8 ext-run.exp --- gdb.server/ext-run.exp 12 Jan 2010 00:50:26 -0000 1.8 +++ gdb.server/ext-run.exp 2 Jun 2010 20:11:47 -0000 @@ -43,7 +43,7 @@ gdb_reinitialize_dir $srcdir/$subdir set target_exec [gdbserver_download_current_prog] gdbserver_start_extended -gdb_test "set remote exec-file $target_exec" "" "set remote exec-file" +gdb_test_no_output "set remote exec-file $target_exec" "set remote exec-file" gdb_breakpoint main gdb_test "run" "Breakpoint.* main .*" "continue to main" --------------080400090308020700010503--