RFA: attach to a PID using a different exec

Tom Tromey tromey@redhat.com
Fri Nov 14 01:53:00 GMT 2008


>>>>> "Michael" == Michael Snyder <msnyder@vmware.com> writes:

Michael> No way should we do this without asking.
Michael> It's just as possible that the first file was the one
Michael> the user wanted, and the one attached to was a mistake.

It does ask, at least if the current exec has debug symbols:

(gdb) attach 16970
Attaching to program: /home/tromey/gnu/git-gdb/build/gdb/gdb, process 16970
Load new symbol table from "/home/tromey/gnu/archer/build/gdb/gdb"? (y or n) 

I suppose it could ask something more specific, though.

Tom



More information about the Gdb-patches mailing list