From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id KJtdINJxgWGsHwAAWB0awg (envelope-from ) for ; Tue, 02 Nov 2021 13:13:54 -0400 Received: by simark.ca (Postfix, from userid 112) id 745611F0C1; Tue, 2 Nov 2021 13:13:54 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D1AF51E940 for ; Tue, 2 Nov 2021 13:13:53 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3280B3858005 for ; Tue, 2 Nov 2021 17:13:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3280B3858005 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1635873233; bh=WHDtri76vcWYu5ffuQDQZ4Lyg346VjlfcaWZDvKXBTA=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=OeSeLRMR/TkBRafH4WFV83LbO3sZVDGeyjgcQcmWj9m5iimHtFhP/YW+OIXZRQsu6 r55qRF2InYvciaA0wgvyjjf6O/axIU/e7nATuBlko1dqA9Z6LS+px+cDib5iTw+ct/ bua+VaA9htPFMdwqWaYSj9P8wDzxRRq3rYf/Wm6M= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id C608C3858C60 for ; Tue, 2 Nov 2021 17:13:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C608C3858C60 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-186-smuMo-A-PqeTwJhWas-_1w-1; Tue, 02 Nov 2021 13:13:31 -0400 X-MC-Unique: smuMo-A-PqeTwJhWas-_1w-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6DC5691283; Tue, 2 Nov 2021 17:13:30 +0000 (UTC) Received: from f35-m1 (ovpn-114-255.phx2.redhat.com [10.3.114.255]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5239F100E12C; Tue, 2 Nov 2021 17:13:30 +0000 (UTC) Date: Tue, 2 Nov 2021 10:13:29 -0700 To: Tom de Vries via Gdb-patches Subject: Re: [PATCH][gdb/testsuite] Work around skip_prologue problems in gdb.threads/process-dies-while-detaching.exp Message-ID: <20211102101329.565a324b@f35-m1> In-Reply-To: <2cc5e63d-5be1-a5c7-b1cd-6058223a5a19@suse.de> References: <20211029192419.GA26416@delia> <2cc5e63d-5be1-a5c7-b1cd-6058223a5a19@suse.de> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Kevin Buettner via Gdb-patches Reply-To: Kevin Buettner Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On Tue, 2 Nov 2021 12:38:26 +0100 Tom de Vries via Gdb-patches wrote: > On 10/29/21 9:24 PM, Tom de Vries via Gdb-patches wrote: > > Hi, > > > > On powerpc64le-linux, I run into: > > ... > > [Inferior 1 (process 5156) exited normally]^M > > (gdb) FAIL: gdb.threads/process-dies-while-detaching.exp: single-process: \ > > detach: detach: continue to breakpoint: _exit (the program exited) > > ... > > > > What happens is the following: > > - a breakpoint is set on _exit, > > - a continue is issued > > - the continue is supposed to hit the breakpoint, but instead > > the program exits. > > > > I traced this down to the breakpoint on _exit being set too far from function > > entry. This is caused by the skip_prologue function (in rs6000-tdep.c) > > optimistically ignoring insns it doesn't recognize. In particular, it walks > > past the system call instruction "sc" which initiates the actual exit. > > > > While this needs fixing, > > Filed here: https://sourceware.org/bugzilla/show_bug.cgi?id=28527 . > > Submitted patch here: > https://sourceware.org/pipermail/gdb-patches/2021-November/183016.html . > > Thanks, > - Tom > > > we don't want to be testing this behaviour in this > > test-case. Since you've fixed the problem in skip_prologue(), I'd prefer that this testsuite patch not go in. Kevin