This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: attach to a PID using a different exec


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]