public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Python Frame decorators and regular frame inspection
@ 2020-04-09 21:57 Francisco Moraes
  0 siblings, 0 replies; only message in thread
From: Francisco Moraes @ 2020-04-09 21:57 UTC (permalink / raw)
  To: gdb

Hi,

I have implemented a frame decorator for our internal JIT. It works really
well and shows function name, location, arguments, etc...

My question is when I try to inspect a specific frame, it doesn't show the
function name nor any local variables.

Are the results of the frame decoration only usable from the backtrace or
where commands? I can only see the variables returned by the decorator by
doing a "where full" command.

I had to resort to implementing a new command to print the JIT variables
for the current frame.

Speaking of which, is there a way to get the current frame pthread ID for
the current frame? GDB's frame command shows this value but none of the
Python Frame methods returns it.

Francisco

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-09 21:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09 21:57 Python Frame decorators and regular frame inspection Francisco Moraes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).