This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: attach u/i oddity
Pedro> Maybe what we need a `warning' so that the surprise is gone:
Pedro> "warning: assuming process is running the loaded executable `FOO'
Pedro> which is different from the executable the target reports the process "
Pedro> is running. Unload it with the `file' command to make gdb find and load
Pedro> the target reported executable automatically."
It seems like a decent idea to me.
I wrote a patch to change the behavior here once:
http://sourceware.org/ml/gdb-patches/2008-11/msg00279.html
The ensuing thread points out the different use cases where people
really want to do this.
Tom