This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: attach to a PID using a different exec
On Thu, Nov 13, 2008 at 12:09:03PM -0800, Stan Shebs wrote:
> For multi-exec GDB, I added a set-exec command for just this situation -
> if you have multiple execs in the session, it's extremely difficult to
> tell which (if any) corresponds to the attached process. In practice so
> far, it's better than nothing, but we need more. We should have as many
> heuristics as possible, and ask for a confirmation too. (I wonder if
> comparing a handful of bytes, or sections, from each exec would be a
> useful check...)
We do basically this for libraries, in solib-svr4.c - there's a few
very useful warnings there. I wouldn't mind one here...
--
Daniel Jacobowitz
CodeSourcery