From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8z8XJ81FfmKDDQYAWB0awg (envelope-from ) for ; Fri, 13 May 2022 07:49:33 -0400 Received: by simark.ca (Postfix, from userid 112) id 93ADE1E220; Fri, 13 May 2022 07:49:33 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=KzPupRz4; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (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 simark.ca (Postfix) with ESMTPS id 23A081E01D for ; Fri, 13 May 2022 07:49:33 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AC1C7384F021 for ; Fri, 13 May 2022 11:49:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC1C7384F021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1652442572; bh=qh15kmOpREHkF5ZDclDk0L8yv8w4G7oR4RM5WpqN59o=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=KzPupRz4Z4zFWhFMKFsNx9VAg2HZ4HgBDRnmxQ4dltbh0JckNYpxM4aa6lxklWn9P E9nXAC2iFKhjYDnhq9nIGxrJpDaFR8Jqj942dM/soGrChHsZ/W8hDk63jTmva7ZE2T dzAgl812GGgK9TwiseoRBc78GvvBjRaypPBnDyGw= Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) by sourceware.org (Postfix) with ESMTPS id 6D4433839C60 for ; Fri, 13 May 2022 11:48:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6D4433839C60 Date: Fri, 13 May 2022 11:48:47 +0000 To: Ludvig Janiuk , "gdb@sourceware.org" Subject: Re: Error in docs, "23.3.2.11 Writing a Frame Filter" + question Message-ID: <9cd9f7fac82ad840fe5d3e995222377cc1586fc7.camel@vrany.io> In-Reply-To: References: Feedback-ID: 40767693:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jan Vrany via Gdb Reply-To: Jan Vrany Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" On Fri, 2022-05-13 at 09:33 +0000, Ludvig Janiuk via Gdb wrote: > Hi, > > I'd like to report an error in the page "23.3.2.11 Writing a Frame Filter= " at > https://sourceware.org/gdb/onlinedocs/gdb/Writing-a-Frame-Filter.html#Wri= ting-a-Frame-Filter > > One of the code listings mentions "ElidingFrameDecorator", however this c= lass is never defined. I believe "ElidingInlineDecorator" was intended. > > While I'm at it, I'd also like to ask a question on the Python API. I hav= e a script which unwinds and filters Java Virtual Machine frames, and it se= ems to > work well in backtraces (gdb command "bt"). However, when I want to look = closer on one of the frames (gdb command "frame "), I get something like= "#5 > 0x00007fffd96f923e in ?? ()" again. Does the Python frame unwinding API o= nly apply to the backtrace command, or is there something I can do to make = my Java > frames visible also in the output of other commands? You can implement FrameDecorator that would provide proper (method) name fo= r given frame (and even source and line number, local variables - see FrameDecorator API)= . This helps, but still, other GDB commands won't know anything about JITed c= ode so you cannot easily set breakpoints or disassembly them. AFAIK, there's no Py= thon API for that. I'm doing some experiments towards having that (see my other = email [1]), but it is still very much WIP. HTH, Jan [1]: https://sourceware.org/pipermail/gdb/2022-May/050124.html > > Best regards, > //Ludvig Janiuk > Oracle