From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YGdnNEc1fmkGnyAAWB0awg (envelope-from ) for ; Sat, 31 Jan 2026 12:00:55 -0500 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=eXQzWF9N; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id C54491E08D; Sat, 31 Jan 2026 12:00:55 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,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 2AF8B1E08D for ; Sat, 31 Jan 2026 12:00:55 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id A94DF4BAD176 for ; Sat, 31 Jan 2026 17:00:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A94DF4BAD176 Authentication-Results: sourceware.org; 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=eXQzWF9N Received: from omta40.uswest2.a.cloudfilter.net (omta40.uswest2.a.cloudfilter.net [35.89.44.39]) by sourceware.org (Postfix) with ESMTPS id 35F544BA2E07 for ; Sat, 31 Jan 2026 17:00:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 35F544BA2E07 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 35F544BA2E07 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769878813; cv=none; b=DuWTkVU/sdXdgMnR/qv0YdYeFulsUxl4MIATli3aBq63ozAG2zqV4KTocCd2/TRMWw4MKR2NP2NW13XSxWq20nEm2dJmCdmby8LCd64xlMNU1j9GYlBxZMPpAH8BxvikztpHGSvbeEbrpazUOU+L32J3nE/qIcP59D7djfwu2lc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769878813; c=relaxed/simple; bh=+3NiJF3jX4s2xx1IIy7Boz3AALxOCJFTKgjq8m/R5rE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ICeyZG4MD4BGX2Gcg8KWbrpVVbxUiyb12UtUARTLowlDM5Rb9K4DwQQl3RBuk0eIVH3hS6G9uc8S8/s61zi9lb9gFxn8Tucf0nqxVUPvd++UboPCIrDz/HS5cI+Jbj9dyF4TYSP9zQVMIiIJOWR1fqu1Jo30MjkSZSmQF6tHjfM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 35F544BA2E07 Received: from eig-obgw-6003b.ext.cloudfilter.net ([10.0.30.175]) by cmsmtp with ESMTPS id mDPKvBYEEaPqLmEKSvtAlg; Sat, 31 Jan 2026 17:00:12 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id mEKRvosGohoT4mEKRvTIYw; Sat, 31 Jan 2026 17:00:11 +0000 X-Authority-Analysis: v=2.4 cv=XZyJzJ55 c=1 sm=1 tr=0 ts=697e351b a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=vUbySO9Y5rIA:10 a=ItBw4LHWJt0A:10 a=Twlkf-z8AAAA:8 a=pGLkceISAAAA:8 a=0NRy6Uvxb0VmOSu-umUA:9 a=c26WoGmKZOwA:10 a=-74SuR6ZdpOK_LpdRCUo:22 a=DCx65vhANUyCzuf5D8fC: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=D6u6NnGC8BoDSXbGfKEzzeOdpn8Z5sIFv4ZwHog3pg4=; b=eXQzWF9Ng9hvTPkhQtuVbNzwQx W96zq+6QQ08VfphC8WCUHzcrQ8zZPCjm53ROmCKBehccNvVzloRCoeXzrHARqjg0GNr6dCyaV5Y88 oikGTmMsHcilUnFwtZq5dUcXl; Received: from 97-122-114-32.hlrn.qwest.net ([97.122.114.32]:53332 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vmEKR-00000000jgE-0LDL; Sat, 31 Jan 2026 10:00:11 -0700 From: Tom Tromey To: Matt Rice Cc: Tom Tromey , Basile Starynkevitch , gdb@sourceware.org, team@refpersys.org Subject: Re: GDB variants accepting plugins (to the debugger) ? In-Reply-To: (Matt Rice's message of "Sat, 31 Jan 2026 02:36:36 +0000") References: <06d90d0ef774cf4ffd69a675a9092afee18a3446.camel@starynkevitch.net> <87ikci97xh.fsf@tromey.com> X-Attribution: Tom Date: Sat, 31 Jan 2026 10:00:09 -0700 Message-ID: <877bsxzpie.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.114.32 X-Source-L: No X-Exim-ID: 1vmEKR-00000000jgE-0LDL X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-114-32.hlrn.qwest.net (prentzel) [97.122.114.32]:53332 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfNz+dwQT8jWYn27dP3gWSK4Wjk6WOmNMoEz9u+VLDCKz/o5rMUyjOUP2BvNiWjI4UVc560vu562UBv72pTGhffZaKOxNEcneftfWkMKVJ8tdIB8AqW5n /oSsSaYsH8PvV8J4K/GOAqAE/J1PniyxvQZJtIauT327WhaeSHAsUGeSIykbuwWhfoMcbOmJVHAycg== 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" >>>>> "Matt" == Matt Rice writes: Matt> Anyhow I would be/have been somewhat interesting in putting in Matt> time/effort into working on this sort of building out wasm inspired by Matt> parts of the python API, but it feels like you'd probably want to put Matt> a big experimental sticker on it in the sense that it could end up Matt> with some component-model upstream change which in theory may mean Matt> that the bytecode compiled pretty printer may be tied to a particular Matt> version gdb using whatever version of the component model. In the same Matt> sense that we currently rely on a python version (with the difference Matt> being that python is much longer history of stabilization than the Matt> component model which) Matt> So in my opinion there is a little more to it than just putting in the Matt> work, there is a lot less prior art than python modules. Matt> Perhaps it would be best to start out with configure option not Matt> enabled by default, with the understanding that it is currently Matt> experimental. Matt> something like --enable-experimental-wasm-plugins or some such. Matt> Anyhow I would be excited to play around with it some if there was a Matt> roadmap for how we want to handle these issues... FWIW another idea in this space is the LLDB bytecode https://lldb.llvm.org/resources/formatterbytecode.html That page makes it sound like the plan is to have the compiler emit this bytecode, but I haven't really paid attention to see if that's happened. I wonder if it would be possible to implement any of these without really touching the gdb core. That is, some Python shims that load wasm or whatever and do what is needed. Tom