From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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" From: Jan Vrany Reply-To: Jan Vrany 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-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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 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: , X-List-Received-Date: Fri, 13 May 2022 11:48:58 -0000 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