From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by sourceware.org (Postfix) with ESMTPS id 8BB683858D28 for ; Mon, 17 Jul 2023 21:53:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8BB683858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-56334abe325so280678a12.3 for ; Mon, 17 Jul 2023 14:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689630812; x=1692222812; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=G5lZe1KOTowpRZUgxi5Ts5c7d6r8VaSDR7lppTYrUdY=; b=ZEkYyyGnw5aI/w3s765bi6w3wg1qEHi/cLTCKC++lYlp1WHz/c+RGSfawf7+oeT/HT TDX/nqUob9YkuT7n2f0yTm4+1u6HBYJw3Jjldhk9O1+P4V53DFWzkk9oYHt21Vgbwxzp FlB/7BAZegTLpZQuBoQMKp1loCKxNvlDTcOrtpfSmuaKW01WzvDX+99orMwdlMylneeZ CbUL2aJ/IZSLRPlKbvgE/xWW8VIB7B8lqqK5w+d1CLMGPjqhZic4iqA42nazpEedQmSD 8vitBFwPVx39W38tRUUEXKjD1s8mjzGC805ZFr8LSxC2al9VT5011l8wg3D4++Kqe78n WN2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689630812; x=1692222812; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G5lZe1KOTowpRZUgxi5Ts5c7d6r8VaSDR7lppTYrUdY=; b=VZHFAu+mpH4qC0dMFsq3YbFe57FH0JWadNnKJhKsSwd3V1CvPoo2IzO2q/Y1vooGI2 mX8RXWwQauiOTHdzT85awhGdratR6db7nqw+O9ZgfYF6BQ9ApmNuOICGnxivnQur83Wl W8ILKrpWt+fbPcdGng0V7Aw4TJo4kLGErFhml2DI9q6LtFYAYGOiNMXO5WzNUG5p/0G8 v/lrDa6ea4TR3KFVMXX52TD1M19YfzIl/jbpKPcmQOJ4H1CabWAo1IYYTBwATZvJwOSA X+V1m6Md2u9Rix4+PR5XuOb/+UIJnnc2bIsR77DDOewRNOpIcBO9PIUIzXUXmR+GRhYl VDSQ== X-Gm-Message-State: ABy/qLb/WAhkaqwc0d7k7jwwYdq0dGirvu7zAxjQSRm8uB0kj7xpmOCJ jMfC1glPVtu1ArsRB/mf1iFPV1Rx3BzQWho2dE4= X-Google-Smtp-Source: APBJJlH2bUGfDHKMYm6HmfCgSYDP0tGNqM9fDVM8S4LOYZaNZYn/iUU4bdL6ZApUWsaE8tPavVVsrZ2+8WrFZNsM4+k= X-Received: by 2002:a17:90a:628a:b0:264:62:a5cd with SMTP id d10-20020a17090a628a00b002640062a5cdmr11270274pjj.4.1689630812270; Mon, 17 Jul 2023 14:53:32 -0700 (PDT) MIME-Version: 1.0 References: <20230625092116.252503-1-simon.farre.cx@gmail.com> <87jzv3o8ck.fsf@tromey.com> In-Reply-To: <87jzv3o8ck.fsf@tromey.com> From: Matt Rice Date: Mon, 17 Jul 2023 21:53:21 +0000 Message-ID: Subject: Re: [PATCH v1] gdb/DAP Introduce new methods to to Pretty Printers To: Tom Tromey Cc: Simon Farre via Gdb-patches , Simon Farre Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, Jul 13, 2023 at 8:38=E2=80=AFPM Tom Tromey via Gdb-patches wrote: > > Maybe one way out would be to define a new way to do pretty-printers, > with a compatibility shim. FWIW, there has been a bit of spit-balling within the rust community about leveraging Debug trait implementations within pretty printers, where what seemed to me like the obvious way to leverage these was to compile Debug impls to wasm, and write a python wrapper which calls into the wasm. I haven't thought or looked into it too much to have considered any hurdles of this approach really, but it would be nice if languages with wasm toolchains could define/compile pretty printers in their own language, since often they already exist for the purpose of runtime logging... Seemed worth bringing up if we're spit-balling here too.