Re: JIT debugging (Attach and speed)
Pedro Alves <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
On 03/22/2016 03:46 PM, Pedro Alves wrote: >> 2. JIT code registration on attach is broken. >> >> When I set a breakpoint on `jit_inferior_init`[3] (i.e. lauching >> gdb with `gdb --args gdb -p <pid_to_debug>`) which IIUC is what >> responsible for walking the jit object list at init time, it seems >> that the function is never called. >> >> (I haven't seen a bug report about this yet) > > Do you know whether this happens with 7.11 and master, and if so, > would it be possible for you to git bisect the culprit? Currently, jit_inferior_created_hook -> jit_inferior_init is only called when the inferior execs... Grepping around, I think that might have been the fix for PR gdb/13431 (03bef283c2d3): https://sourceware.org/ml/gdb-patches/2012-02/msg00023.html which removed the inferior_created (jit_inferior_created_observer). Adding an inferior_created observer back likely fixes the issue. Thanks, Pedro Alves