This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: jit_breakpoint_re_set_internal desc_symbol issue
- From: Tom Tromey <tromey at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 16 Apr 2013 11:19:21 -0600
- Subject: Re: jit_breakpoint_re_set_internal desc_symbol issue
- References: <yjt2mwt3s7u5 dot fsf at ruffy2 dot mtv dot corp dot google dot com>
Doug> The problem is that the msymbol computed here:
Doug> jit.c:jit_breakpoint_re_set_internal:
Doug> desc_symbol = lookup_minimal_symbol (jit_descriptor_name, NULL,
Doug> reg_symbol.objfile);
Doug> is clobbered when we resort minsyms due to objfile relocation here:
Doug> objfiles.c:objfile_relocate1:
Doug> I haven't dug into why this only just started happening,
Doug> seems like the bug has been there for awhile.
Doug> I'm not sure what the right fix is here.
Doug> Suggestions?
It is probably mine. Also I think there are other instances, possibly
erroneous, of minsym caching. I suggest filing a bug and assigning it
to me, and I will deal with it as soon as I'm able.
Tom