This is the mail archive of the
mailing list for the GDB project.
Re: auto-solib-add when attaching to inferior
> Remember that you don't use attach with the normal remote protocol.
> When you to_open the target has already started. For your agent it
> sounds like you need to do it at to_attach time; but why isn't the one
> in infcmd.c:attach_command working?
Good question. For some reason locate_base() seems to be failing. Maybe
that's the answer to the puzzle. It looks like the SOLIB_ADD() in
attach_command() should do the right thing. I'll chase it deeper from that