RFA: attach to a PID using a different exec

Tom Tromey tromey@redhat.com
Thu Nov 13 22:54:00 GMT 2008


>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:

>> This patch changes gdb to look at the target's notion of the exec
>> file, and then switch to it if it differs from the current exec.

Daniel> This seems like a bad idea to me.  The canonical example is:
Daniel> /usr/bin/prog.stripped &
Daniel> gdb /home/drow/prog.debug $(pidof prog.stripped)
Daniel> I don't want GDB to prompt my to switch to the stripped program...

Well, you can answer "no".  So while it is inconvenient, it seems
minor.  On the other hand, the current situation can leave one with a
nonsensical setup.  This bites me a lot more than I should probably
admit.

Tom



More information about the Gdb-patches mailing list