From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 0C3F3385801D for ; Tue, 2 Nov 2021 17:06:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0C3F3385801D 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-181-gJmKJJwaMDOgKlVOYO1JfQ-1; Tue, 02 Nov 2021 13:06:24 -0400 X-MC-Unique: gJmKJJwaMDOgKlVOYO1JfQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 85654101AFC7; Tue, 2 Nov 2021 17:06:23 +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 610295F4F5; Tue, 2 Nov 2021 17:06:23 +0000 (UTC) Date: Tue, 2 Nov 2021 10:06:21 -0700 From: Kevin Buettner To: Tom de Vries Cc: gdb-patches@sourceware.org Subject: Re: [PATCH][gdb/testsuite] Handle SIGILL in two gdb.arch powerpc test-cases Message-ID: <20211102100621.74a1d96a@f35-m1> In-Reply-To: <20211029194516.GA27121@delia> References: <20211029194516.GA27121@delia> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: , X-List-Received-Date: Tue, 02 Nov 2021 17:06:29 -0000 On Fri, 29 Oct 2021 21:45:18 +0200 Tom de Vries wrote: > On powerpc64le-linux, with test-case gdb.arch/powerpc-addpcis.exp I run into > SIGILL: > ... > (gdb) PASS: gdb.arch/powerpc-addpcis.exp: get hexadecimal valueof "$r3" > stepi^M > ^M > Program terminated with signal SIGILL, Illegal instruction.^M > The program no longer exists.^M > (gdb) PASS: gdb.arch/powerpc-addpcis.exp: set r4 > ... > because it's a power9 insn, and I'm running on a power8 machine. > > Fix this by handling the SIGILL. Likewise in gdb.arch/powerpc-lnia.exp. > > Tested on powerpc64le-linux. > > Any comments? LGTM. Kevin