[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: Tue, 13 Feb 2018 21:58:13 +0100


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

reply via email to

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