This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH/RFA]: Adapt solib-svr4.c for recent gdbarch_data changes
Date: Sun, 09 Jun 2002 12:20:01 -0400
From: Andrew Cagney <ac131313@cygnus.com>
> Discovered this moring that my gdb was crashing. Seems like we have
> an initialization cycle here. I think that after Andrew's patch we
> can simplify init_fetch_link_map_offsets as in the attached patch.
Oops! The target I tried this on sets the link map offset.
(So this also means that the cycle test works?)
Yup!
> OK to check this in?
> * solib-svr4.c (init_fetch_link_map_offsets): Simply return
> legacy_fetch_link_map_offsets. Adjust comment to reflect reality
> after Andrew's 2002-06-08 gdbarch change.
I think it might have to go under an ``obvious fix''. I definitly broke
the code and the way you've changed things is the only way to do it.
I just wasn't completely sure. Committed now.
Mark