From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9373 invoked by alias); 30 Oct 2018 17:40:06 -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 9354 invoked by uid 89); 30 Oct 2018 17:40:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:997 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 ESMTP; Tue, 30 Oct 2018 17:40:04 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 994252D7E0; Tue, 30 Oct 2018 17:40:03 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id B10E46090D; Tue, 30 Oct 2018 17:40:02 +0000 (UTC) Subject: Re: [PATCH v3 3/3] Aarch64: Fix segfault when casting dummy calls To: Alan Hayward References: <20181011144905.66908-1-alan.hayward@arm.com> <20181011144905.66908-4-alan.hayward@arm.com> <95a5dd34-6815-f3f5-107c-13f4956b741e@redhat.com> <9290BC71-862C-48B1-97FD-A46C5D15A65C@arm.com> <201c7a49-ddf3-636a-f15a-eb9a4ccf284e@redhat.com> <3FFDA486-3FC8-4DA2-92C9-83C320F589F6@arm.com> <862cf8f4-9491-a1eb-251e-6c7c1ffffa6c@redhat.com> <830e7c3b-3469-6cea-61d1-5a1e7e230de1@redhat.com> <8DDC5D9D-D601-4D6D-A21F-7A35FF92C6EA@arm.com> <3f0332c2-1721-003e-e8a4-1e854f2ff00b@redhat.com> <728A5D57-584B-405D-8315-FA1687C32192@arm.com> Cc: GDB Patches , nd From: Pedro Alves Message-ID: Date: Tue, 30 Oct 2018 17:40:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <728A5D57-584B-405D-8315-FA1687C32192@arm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-10/txt/msg00717.txt.bz2 On 10/30/2018 05:09 PM, Alan Hayward wrote: > > >> On 30 Oct 2018, at 16:31, Pedro Alves wrote: >> So that's the real difference. Shared vs non-shared is just >> a kind of a red herring. If you don't have debug info for >> libstdc++, for example, then probably GDB won't know that the >> no-debug-info program is a C++ program either. >> >> So please adjust your test to eliminate use of the shared >> library, and build just the cmp3 source file without >> debug info. > > Will do. Thinking a little bit more, the conditional breakpoint is also kind of a red herring here. What really matters is the infcall. So the testcase could just do: (gdb) p (int) cmp3(word) I'd simplify the testcase a little bit in that direction, and call it gdb.cp/nodebug-infcall.exp, for example. Note, the testcase should be gated with a if [target_info exists gdb,cannot_call_functions] { check. Thanks, Pedro Alves