[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libjit] unwinding in gdb

From: Jakob Löw
Subject: Re: [Libjit] unwinding in gdb
Date: Thu, 15 Feb 2018 21:19:27 +0100

Hey again,

so i attached my version of the script, the main enhancements are the
libjit-context command which allows to specify the jit context and the
optional libjit-name-meta which specifies a value used with
jit_function_get_meta, allowing to print function names rather than
code ranges. Fell free to try it with your emacs thing and tell me if
it works :)

- Jakob

On Tue, 2018-02-13 at 21:58 +0100, Jakob Löw wrote:
> Hey,
> I tried playing around with your code a bit and added a simple
> command
> to specify the jit_context either via the value of a local symbol or
> via a global symbol. However I also changed some parts of your code
> breaking it along the way, mainly because I wanted to call
> jit_function_from_pc for retrieving function pointers. I'll try to
> tidy
> up my version and send it here in the next days.
> However a bigger problem I see is that we dont see names of jit
> functions. JIT[0x..., 0x...] doesn't seem very informative to me.
> Libjit doesn't have a standard way to give functions names, maybe a
> second gdb command for specifying a meta "type" used with
> jit_function_get_meta for retrieving function names could solve this?
> Or should libjit provide an (optional) way for naming functions? The
> latter could then also be used in jit_dump_function.
> - Jakob
> On Tue, 2018-02-13 at 10:36 -0700, Tom Tromey wrote:
> > Tom> I think it's probably not quite ready to be checked in.
> > 
> > I also forgot to mention that I tripped over a gdb crash when using
> > this.
> > Patching gdb works, see this bug for details:
> > 
> >
> > 
> > Tom
> > 

Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]