From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id mwQCNQFjYGYtQScAWB0awg (envelope-from ) for ; Wed, 05 Jun 2024 09:07:13 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=theunixzoo.co.uk header.i=@theunixzoo.co.uk header.a=rsa-sha256 header.s=hudzen10 header.b=nTomwzeF; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id C92A81E0C0; Wed, 5 Jun 2024 09:07:13 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 66B091E092 for ; Wed, 5 Jun 2024 09:07:11 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B33153A5178F for ; Wed, 5 Jun 2024 13:07:10 +0000 (GMT) Received: from hudzen10.theunixzoo.co.uk (hudzen10.theunixzoo.co.uk [176.126.244.16]) by sourceware.org (Postfix) with ESMTPS id 83B5938185E2 for ; Wed, 5 Jun 2024 13:06:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 83B5938185E2 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=theunixzoo.co.uk Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=theunixzoo.co.uk ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 83B5938185E2 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=176.126.244.16 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717592806; cv=none; b=uKjHV5Yla/JnTEsIVlpRPYl526K+4eVMiLAlMbe1DcLdPVl289EP/woX6rS8P/00/v0ObIhk0ZUXFhgLuRDrzu65FfoI4qO/ukzdumkPKkndPr4D9WxBLJ70szjKf7DFOGrSW17npVoSshIOj6gzou0kyOqUQjsd37ogPpznjvs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717592806; c=relaxed/simple; bh=Yk4m3cBAykrVpM8Uum7Ow+SDqtCOQKox6KyESPfMBXc=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=NXwkfD3xohD6FJP5Xf+bXAGCH76dALd3IQaNXvJhVPFkHSo4OkWsB6cPSovZtrT94YW5lelKNZGa4MjFxa1o0BeHzAWUKjD1pW5/AKYBdoVPlmD0Mtr6CQVKxzwN7T69vRu6A/Lv1aw1rCtAPv8A50+cDqnD2xdQLYdatsF8BAI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=hudzen10; bh=Yk4m3cBAykr VpM8Uum7Ow+SDqtCOQKox6KyESPfMBXc=; h=subject:to:from:date; d=theunixzoo.co.uk; b=nTomwzeFVlGejIMA1BPhsDHlnqYaMmmvyAA/bGFrhNS3aE1O Gd5bSpQDPSgDlWtBmrt12IBD+YgrE1al9PfANT8ptYPqEC/HrFcyAjvDIn9q8mWBxHGouW W8rqil6Q0iyt5OqfZvV2jaotDyNNl6+8D7/TKJUwwR/RKXVpj8g32BKxFVTYe1LtStcYzu lsi+tD+A8HphzQu+YnDXFqfq+AeYGRRqHOta/9Ej0GrAMU6QFZqFKmr+38pebM3Of0/VX1 INKiWyR8v4nF/5N5XPmc40ZBepz856XTdeMCIJQ2jxCP2CQEdDxtWoisNH1QhXUGoORiib yFmSmRlqIB0D0A== Received: from localhost (host-80-43-105-124.as13285.net [80.43.105.124]) by hudzen10.theunixzoo.co.uk (OpenSMTPD) with ESMTPSA id fb51a4e2 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) auth=yes user=edd for ; Wed, 5 Jun 2024 14:06:43 +0100 (BST) Date: Wed, 5 Jun 2024 14:06:37 +0100 From: Edd Barrett To: gdb@sourceware.org Subject: Breakpoints on JITted code Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, KAM_COUK, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hi, I've recently implemented a simple gdb plugin [0] for a JIT I'm working on. Lineinfo is working well, but I was expecting to be able to set breakpoints on the names of JITted code functions (where the name is the one passed to the `name` argument of block_open()), but this doesn't appear to be the case. gdb allows me to set a pending breakpoint, but doesn't stop when a JITted function of that name is reached. Should I be able to set breakpoints by name for JITted code functions? I'm using gdb-13.1 on Debian/amd64. I tried with gdb-14.2, but something about my plugin causes gdb to crash with: ``` internal-error: sect_index_text not initialized". ``` Applying this patch [1] doesn't make that go away: Cheers [0] https://github.com/ykjit/yk/blob/master/ykrt/yk_gdb_plugin/yk_gdb_plugin.c [1] https://sourceware.org/bugzilla/show_bug.cgi?id=25678#c5 -- Best Regards Edd Barrett https://www.theunixzoo.co.uk