From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id E4727385840A; Fri, 29 Jul 2022 06:49:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E4727385840A 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/killed-outside.exp on aarch64 X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: f8ad70a17bfc12199cc5a20b55b369c3dfa6cb42 X-Git-Newrev: b245c595aaa59812f8f3a0e8b70ea5f52e045627 Message-Id: <20220729064948.E4727385840A@sourceware.org> Date: Fri, 29 Jul 2022 06:49:48 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2022 06:49:49 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Db245c595aaa5= 9812f8f3a0e8b70ea5f52e045627 commit b245c595aaa59812f8f3a0e8b70ea5f52e045627 Author: Tom de Vries Date: Fri Jul 29 08:49:45 2022 +0200 [gdb/testsuite] Fix gdb.threads/killed-outside.exp on aarch64 =20 On aarch64 (and likewise on arm), I run into: ... (gdb) PASS: gdb.threads/killed-outside.exp: get pid of inferior Executing on target: kill -9 11516 (timeout =3D 300) builtin_spawn -ignore SIGHUP kill -9 11516^M continue^M Continuing.^M Unable to fetch general registers: No such process.^M (gdb) [Thread 0xfffff7d511e0 (LWP 11518) exited]^M ^M Program terminated with signal SIGKILL, Killed.^M The program no longer exists.^M FAIL: gdb.threads/killed-outside.exp: prompt after first continue (time= out) ... due to a mismatch between the actual "No such process" line and the exp= ected one: ... set no_such_process_msg "Couldn't get registers: No such process\." ... =20 Fix this by updating the regexp. =20 Tested on aarch64-linux, and x86_64-linux. Diff: --- gdb/testsuite/gdb.threads/killed-outside.exp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.threads/killed-outside.exp b/gdb/testsuite/g= db.threads/killed-outside.exp index 3d4543e088c..7fa6b26c685 100644 --- a/gdb/testsuite/gdb.threads/killed-outside.exp +++ b/gdb/testsuite/gdb.threads/killed-outside.exp @@ -37,7 +37,8 @@ remote_exec target "kill -9 ${testpid}" # Give it some time to die. sleep 2 =20 -set no_such_process_msg "Couldn't get registers: No such process\." +set regs_msg "(Couldn't get registers|Unable to fetch general registers)" +set no_such_process_msg "$regs_msg: No such process\." set killed_msg "Program terminated with signal SIGKILL, Killed\." set no_longer_exists_msg "The program no longer exists\." set not_being_run_msg "The program is not being run\."