From patchwork Mon Dec 21 20:09:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 10102 Received: (qmail 3930 invoked by alias); 21 Dec 2015 20:10:07 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 3917 invoked by uid 89); 21 Dec 2015 20:10:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 spammy=foll-vfork.exp, UD:foll-vfork.exp, follvforkexp, 2908 X-HELO: usplmg20.ericsson.net Received: from usplmg20.ericsson.net (HELO usplmg20.ericsson.net) (198.24.6.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 21 Dec 2015 20:10:06 +0000 Received: from EUSAAHC006.ericsson.se (Unknown_Domain [147.117.188.90]) by usplmg20.ericsson.net (Symantec Mail Security) with SMTP id AE.A6.06940.29B58765; Mon, 21 Dec 2015 21:05:38 +0100 (CET) Received: from elxcz23q12-y4.dyn.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.90) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 21 Dec 2015 15:09:55 -0500 From: Simon Marchi To: CC: Simon Marchi Subject: [PATCH] Remove HP-UX reference in foll-vfork.exp Date: Mon, 21 Dec 2015 15:09:51 -0500 Message-ID: <1450728591-7224-1-git-send-email-simon.marchi@ericsson.com> MIME-Version: 1.0 X-IsSubscribed: yes One more I just found. Tested with native, native-gdbserver and native-extended-gdbserver on Linux. gdb/testsuite/ChangeLog: * gdb.base/foll-vork.exp: Remove HP-UX special case. --- gdb/testsuite/gdb.base/foll-vfork.exp | 42 +++++------------------------------ 1 file changed, 6 insertions(+), 36 deletions(-) diff --git a/gdb/testsuite/gdb.base/foll-vfork.exp b/gdb/testsuite/gdb.base/foll-vfork.exp index 0356598..bf4ea43 100644 --- a/gdb/testsuite/gdb.base/foll-vfork.exp +++ b/gdb/testsuite/gdb.base/foll-vfork.exp @@ -222,18 +222,8 @@ proc tcatch_vfork_then_parent_follow {} { gdb_test_no_output "set follow-fork parent" gdb_test "tcatch vfork" "Catchpoint .*(vfork).*" - - # HP-UX 10.20 seems to stop you in "vfork", while more recent - # HP-UXs stop you in "_vfork". - set test "continue to vfork" - gdb_test_multiple "continue" $test { - -re "0x\[0-9a-fA-F\]*.*(vfork|__kernel_v?syscall).*$gdb_prompt " { - pass $test - } - -re "vfork \\(\\) at.*$gdb_prompt " { - pass $test - } - } + gdb_test "continue" "0x\[0-9a-fA-F\]*.*(vfork|__kernel_v?syscall).*" \ + "continue to vfork" set linenum [gdb_get_line_number "pid = vfork ();"] set test "finish" @@ -264,18 +254,8 @@ proc tcatch_vfork_then_child_follow_exec {} { gdb_test_no_output "set follow-fork child" gdb_test "tcatch vfork" "Catchpoint .*(vfork).*" - - # HP-UX 10.20 seems to stop you in "vfork", while more recent HP-UXs - # stop you in "_vfork". - set test "continue to vfork" - gdb_test_multiple "continue" $test { - -re "vfork \\(\\) at .*$gdb_prompt $" { - pass $test - } - -re "0x\[0-9a-fA-F\]*.*(vfork|__kernel_v?syscall).*$gdb_prompt " { - pass $test - } - } + gdb_test "continue" "0x\[0-9a-fA-F\]*.*(vfork|__kernel_v?syscall).*" \ + "continue to vfork" set linenum1 [gdb_get_line_number "pid = vfork ();"] set linenum2 [gdb_get_line_number "printf(\"Hello from vforked-prog" ${srcfile2}] @@ -310,18 +290,8 @@ proc tcatch_vfork_then_child_follow_exit {} { gdb_test_no_output "set follow-fork child" gdb_test "tcatch vfork" "Catchpoint .*(vfork).*" - - # HP-UX 10.20 seems to stop you in "vfork", while more recent HP-UXs - # stop you in "_vfork". - set test "continue to vfork" - gdb_test_multiple "continue" $test { - -re "vfork \\(\\) at .*$gdb_prompt $" { - pass $test - } - -re "0x\[0-9a-fA-F\]*.*(vfork|__kernel_v?syscall).*$gdb_prompt " { - pass $test - } - } + gdb_test "continue" "0x\[0-9a-fA-F\]*.*(vfork|__kernel_v?syscall).*" \ + "continue to vfork" set test "finish" gdb_test_multiple "finish" $test {