From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 5CejCbBQfGaWYg8AWB0awg (envelope-from ) for ; Wed, 26 Jun 2024 13:32:32 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=DCSwPOAg; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 195D81E0C1; Wed, 26 Jun 2024 13:32:32 -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 08C7B1E030 for ; Wed, 26 Jun 2024 13:32:30 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B53EC387542A for ; Wed, 26 Jun 2024 17:32:29 +0000 (GMT) Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) by sourceware.org (Postfix) with ESMTPS id 938813871016 for ; Wed, 26 Jun 2024 17:32:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 938813871016 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 938813871016 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719423126; cv=none; b=oOgIzlT+HopgPTP9YM3u9DFq+FQRh3xh8XwXIf8C2U6o0YC8wGx1UQbrDRHnRG5nBkrT5Dbi6G9kl0cIXHY/QZz5K87WWZPGPHmF4LGbzCNCVPcUMVncodxopa3cOe8OPtQxlnkp6jQl6zjPLCI1AGyksWVEXgj48ysjpTJCOZo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719423126; c=relaxed/simple; bh=vY1WnS9MAEkFaznsSYV0PXRgSiToWbiWTAergjA+Ty4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ZKdGdoKOoY87aLCtLv43m1twL9ZK6ZQt/X4GLvFKyQAY4PaVstEHKNWbtnKXPp8xGpds22RLSKcUOy/11SzFm3O+keT2jo+u+YfwNnZeA4FLfTNXan9zkoe3K4rcw4iB/x2kCYmGUYtlJEI1qsPeANUXnW/svRg7xd1ASp5um3I= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6003a.ext.cloudfilter.net ([10.0.30.151]) by cmsmtp with ESMTPS id MU7zszUmXAidIMWV2sdwAZ; Wed, 26 Jun 2024 17:32:04 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id MWV1sNY98d4oeMWV1s0oku; Wed, 26 Jun 2024 17:32:03 +0000 X-Authority-Analysis: v=2.4 cv=aYKqngot c=1 sm=1 tr=0 ts=667c5093 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=T1WGqf2p2xoA:10 a=Qbun_eYptAEA:10 a=k0qOsw42AAAA:8 a=arcuODnlxC3VlgdjdqwA:9 a=yCkXeCTYctq_vo8n8iSN:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tE0c+yggOyWJADRqpkSugC4V5yAMOiEpIiJeBze2AfQ=; b=DCSwPOAgM1XFEQo2BRkjFWZBtf 86bq1wH0twluWGdUZE2cZuG37QPcnenmBSVMyR6a5shJ6Zcfr7KDhseHk8moKwX65V6JYQkejmVoL HsSsekYuQ3eUkEIJJQtTaeGks; Received: from 97-122-118-144.hlrn.qwest.net ([97.122.118.144]:60868 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1sMWV0-004Blq-2o; Wed, 26 Jun 2024 11:32:02 -0600 From: Tom Tromey To: Edd Barrett Cc: gdb@sourceware.org Subject: Re: Breakpoints on JITted code In-Reply-To: (Edd Barrett's message of "Wed, 5 Jun 2024 14:06:37 +0100") References: X-Attribution: Tom Date: Wed, 26 Jun 2024 11:32:01 -0600 Message-ID: <87o77nsj8u.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.118.144 X-Source-L: No X-Exim-ID: 1sMWV0-004Blq-2o X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-118-144.hlrn.qwest.net (murgatroyd) [97.122.118.144]:60868 X-Source-Auth: tom+tromey.com X-Email-Count: 6 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfOTV+CQrJlCxKcy96VV51EQFEXOHgdxuLjXzZMovqBZlT3yxbncIAyBXka81kFfhbMcBJ3es1DmpGlChNoatLqq1bfBsS94a+7Cn0VYj7llXFJTlPaBK cOTqpfk4CbgTUehZiAJhiyn6rH0eK6GSKlA0Aq4tZXoSAq7FD9oZHRBYVU7qG7woDskyMfmwtRiQTg== X-Spam-Status: No, score=-3013.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP 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" >>>>> "Edd" == Edd Barrett writes: Sorry this didn't get a response. Edd> Lineinfo is working well, but I was expecting to be able to set breakpoints on Edd> the names of JITted code functions (where the name is the one passed to the Edd> `name` argument of block_open()), but this doesn't appear to be the case. gdb Edd> allows me to set a pending breakpoint, but doesn't stop when a JITted function Edd> of that name is reached. Edd> Should I be able to set breakpoints by name for JITted code functions? Based on looking at gdb/jit.c I think I'd expect that to work. It's creating function domain symbols in finalize_symtab. Maybe turning on some symbol lookup debug logging would help -- not sure. Or just debugging gdb itself, that's what I'd try. Edd> I'm using gdb-13.1 on Debian/amd64. I tried with gdb-14.2, but something about Edd> my plugin causes gdb to crash with: Edd> ``` Edd> internal-error: sect_index_text not initialized". Edd> ``` Some parts of gdb expect objfiles to have a text section. This is a longstanding bug but nobody's ever fixed it, presumably because a data-only shared library is pretty rare. Tom