From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id p/xgHR1tj2nIkzkAWB0awg (envelope-from ) for ; Fri, 13 Feb 2026 13:27:41 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=fGoZ6SJo; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 5647F1E08D; Fri, 13 Feb 2026 13:27:41 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id BB6B11E08D for ; Fri, 13 Feb 2026 13:27:40 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id D6EB54B9DB79 for ; Fri, 13 Feb 2026 18:27:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D6EB54B9DB79 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=fGoZ6SJo Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 99FB74B9DB6A for ; Fri, 13 Feb 2026 18:27:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 99FB74B9DB6A Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 99FB74B9DB6A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771007233; cv=none; b=SjFOBHO7s9n+GPl652MvIH6ZMtBg1DdKhglDoFyByCL4opnQdPN4Qh6AEwSiIKY86tgyEgURNBMZF4AY6dLK4ntIsuFonQNX8Qa8LfwUOGCIb/1ghQhyX7R5Y4p5Is5XUbGWHnZX6YA14Kcc4/NsHn8MTJ8FRmdjpU+XlDDPNgY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771007233; c=relaxed/simple; bh=hdl7G91VlaLWtWRAAgve3CerHM/pynZ0CKvKD1b8V7w=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=nuNwrx1zKa6fVur7tQf1M05lajQtUYif3UrhyJh7bLtzPm8SpanW5uodeJGVsZi7CJgzRH9FHIe9vNPw683I5YEWXmuySIuE9/BQvqa70YtlWmHrmHwoAhP/hebTjAVEY5RhYzkzsLV8ZO8U6uOfoERIZ8pMPbzr/lGiEsDL/9c= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99FB74B9DB6A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1771007233; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cRYkWNfK8g5pBWGG/SAlW1wpJbKkiOJyv1ys1JkTGPc=; b=fGoZ6SJozS04u8dI5Ohfa7gxNcr9trjC14xMia6fV1GUtju0Zp0ew0L3fwnTA18kYwNCRi SFiFfTMcfNGANDJyQrqEf7ZwrNPneu8VbhFADKyEclOvUgkrpgB3keoCeTwBlQ+fZR+/2e 3BDZz6My/QwTAv1lo9B+0md1Sr6E5Og= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-685-kJ-Uk_8xObaonyhFEHwTZw-1; Fri, 13 Feb 2026 13:27:11 -0500 X-MC-Unique: kJ-Uk_8xObaonyhFEHwTZw-1 X-Mimecast-MFC-AGG-ID: kJ-Uk_8xObaonyhFEHwTZw_1771007231 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1E2B71956071 for ; Fri, 13 Feb 2026 18:27:11 +0000 (UTC) Received: from f42-zbm-amd (unknown [10.22.88.16]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8A69219560BE for ; Fri, 13 Feb 2026 18:27:10 +0000 (UTC) Date: Fri, 13 Feb 2026 11:27:08 -0700 From: Kevin Buettner To: gdb-patches@sourceware.org Subject: Re: [PATCH 1/4] gdb/elfread: add debug output for GNU ifunc resolution Message-ID: <20260213112708.38821e69@f42-zbm-amd> In-Reply-To: <20260213053912.3520505-1-simon.marchi@polymtl.ca> References: <20260213053912.3520505-1-simon.marchi@polymtl.ca> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 5ycFiL6rhSRUabIBFzpFIvq4P8IpDV2s3JdILYmvpbs_1771007231 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.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On Fri, 13 Feb 2026 00:38:48 -0500 simon.marchi@polymtl.ca wrote: > From: Simon Marchi > > Add some debug prints throughout the ifunc resolution code, to be able > to better understand what GDB does. Add the new "set debug gnu-ifunc" > knob to control it. > > Add the debug_prefixed_printf_cond_func macro to implement > gnu_ifunc_debug_printf_func, that takes an explicit function name. This > is needed to avoid showing "operator()" as the function name in the > debug message. > > Here is a sample session with the new debug output enabled. > [...] > --- > gdb/NEWS | 4 ++ > gdb/doc/gdb.texinfo | 6 +++ > gdb/elfread.c | 110 +++++++++++++++++++++++++++++++++++--- > gdbsupport/common-debug.h | 9 ++++ > 4 files changed, 123 insertions(+), 6 deletions(-) This would have been helpful when I was debugging some ifunc related problems last year. I've looked over all four parts. They all LGTM. Approved-by: Kevin Buettner