This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: fix PR 13987


On 01/04/2013 04:27 PM, Tom Tromey wrote:

> Pedro> Sort of related, while trying to understand how is
> Pedro> inferior_data->objfile cleared in that same situation, I happened
> Pedro> to notice that free_objfile_data calls get_jit_inferior_data,
> Pedro> which calls current_inferior.  Doesn't look multi-inferior safe.
> 
> Maybe I see -- the objfile is attached to a progspace, not an inferior.
> So we have to look for inferiors using this progspace instead of
> assuming the current inferior.
> 
> Is that what you mean?  Or if not, can you walk me through it some more?

I meant, that even if it was attached to an inferior, there is no
hard guarantee that the current inferior would be the one
the breakpoint is attached to.  But yes, that too.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]