From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 9950F3858D33; Thu, 9 Mar 2023 11:56:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9950F3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678362980; bh=um1gMB4347jltuPzmBanXruJuFNq1nVYlAikIoGUUag=; h=From:To:Subject:Date:From; b=nUNdK7AR4V4hl2hRotOA+imShp94m7UHDqyqLRlcdqTeJ+pCNRD1m4Zhd9xFPStC+ PFxpHUpYj2PPPrhFD6RU828Gq8nxJOVHsqea+MdMRcqa3PZXWND8A7vhPDqwm0pjTE /wETLcSH/MEh4W6laRh/61730Ovzymnl4UwDc9E0= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/testsuite] Fix gdb.threads/multiple-successive-infcall.exp on native-gdbserver X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 89702edd933a5595557bcd9cc4a0dcc3262226d4 X-Git-Newrev: f2be4eeb6ce93e4dfab259587bcaf5cb861fc25b Message-Id: <20230309115620.9950F3858D33@sourceware.org> Date: Thu, 9 Mar 2023 11:56:20 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Df2be4eeb6ce9= 3e4dfab259587bcaf5cb861fc25b commit f2be4eeb6ce93e4dfab259587bcaf5cb861fc25b Author: Tom de Vries Date: Thu Mar 9 12:56:27 2023 +0100 [gdb/testsuite] Fix gdb.threads/multiple-successive-infcall.exp on nati= ve-gdbserver =20 With test-case gdb.threads/multiple-successive-infcall.exp and target b= oard native-gdbserver I run into: ... (gdb) continue^M Continuing.^M [New Thread 758.759]^M ^M Thread 1 "multiple-succes" hit Breakpoint 2, main () at \ multiple-successive-infcall.c:97^M 97 thread_ids[tid] =3D tid + 2; /* prethreadcreationmarker *= /^M (gdb) FAIL: gdb.threads/multiple-successive-infcall.exp: thread=3D5: \ created new thread ... =20 The problem is that the new thread message doesn't match the regexp, wh= ich expects something like this instead: ... [New Thread 0x7ffff746e700 (LWP 570)]^M ... =20 Fix this by accepting this form of new thread message. =20 Tested on x86_64-linux. Diff: --- gdb/testsuite/gdb.threads/multiple-successive-infcall.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/testsuite/gdb.threads/multiple-successive-infcall.exp b/gd= b/testsuite/gdb.threads/multiple-successive-infcall.exp index f33cba62855..bd037a02674 100644 --- a/gdb/testsuite/gdb.threads/multiple-successive-infcall.exp +++ b/gdb/testsuite/gdb.threads/multiple-successive-infcall.exp @@ -40,6 +40,9 @@ foreach_with_prefix thread {5 4 3} { -re "\\\[New Thread ${hex} \\\(LWP \[0-9\]+\\\)\\\].*${gdb_prompt}" { pass "${after_new_thread_message}" } + -re -wrap "\\\[New Thread $decimal\\.$decimal\\\]\r\n.*" { + pass $gdb_test_name + } } }