This is the mail archive of the
mailing list for the GDB project.
Re: RFA: attach to a PID using a different exec
>>>>> "Daniel" == Daniel Jacobowitz <firstname.lastname@example.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