From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90457 invoked by alias); 22 Jan 2016 20:17:08 -0000 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 Received: (qmail 90438 invoked by uid 89); 22 Jan 2016 20:17:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=gdb.gdb, UD:gdb.gdb, gdbgdb, UD:gdb X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 22 Jan 2016 20:17:06 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id B1C8E1C5F42 for ; Fri, 22 Jan 2016 20:17:05 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0MKH4BX010006; Fri, 22 Jan 2016 15:17:05 -0500 Message-ID: <56A28E40.205@redhat.com> Date: Fri, 22 Jan 2016 20:17:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Jan Kratochvil CC: gdb-patches@sourceware.org Subject: Re: [testsuite patch]#2 Fix PR threads/19422 regression + Guile regression [Re: [PATCH+doc] Fix PR threads/19422 - show which thread caused stop] References: <1451950202-18024-1-git-send-email-palves@redhat.com> <5697ABE8.7060705@redhat.com> <20160122173020.GA5946@host1.jankratochvil.net> <20160122173100.GA5990@host1.jankratochvil.net> <56A276EB.1070208@redhat.com> <20160122200542.GA12621@host1.jankratochvil.net> <56A28CE6.3090406@redhat.com> In-Reply-To: <56A28CE6.3090406@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-01/txt/msg00585.txt.bz2 On 01/22/2016 08:11 PM, Pedro Alves wrote: > On 01/22/2016 08:05 PM, Jan Kratochvil wrote: >> racy case #2: >> >> (xgdb) PASS: gdb.gdb/selftest.exp: Set xgdb_prompt >> ^M >> Thread 1 "xgdb" received signal SIGINT, Interrupt.^M >> 0x00007ffff583bfdd in poll () from /lib64/libc.so.6^M >> (gdb) FAIL: gdb.gdb/selftest.exp: send ^C to child process >> signal SIGINT^M >> Continuing with signal SIGINT.^M >> ^C^M >> Thread 2 "xgdb" received signal SIGINT, Interrupt.^M >> [Switching to Thread 0x7ffff3b7f700 (LWP 13227)]^M > > So you need to adjust your patch in the bit that matched > "Thread 1", right? And I notice now that this expects the thread name to be the the program name: - -re "Program received signal SIGINT.*$gdb_prompt $" { + -re "(Thread 1 \"xgdb\"|Program) received signal SIGINT.*$gdb_prompt $" { Not all targets support thread names, and even those that do, not all use the program name as default thread name -- I think that's only true for GNU/Linux, actually. So I think it's best to not expect that, like: -re "(Thread .*|Program) received signal SIGINT.*$gdb_prompt $" { or: -re " received signal SIGINT.*$gdb_prompt $" { Thanks, Pedro Alves