Re: [patch] Forbid run with a core file loaded

Tom Tromey
2010-06-08T02:33:08Z

Jan> I hope you agree the target stack should be made specific for each
Jan> inferior.

Pedro> I've gone back and forth on that for a while with the multi-exec
Pedro> work. It's trickier than that.

How else would you propose letting people attach to multiple inferiors
using multiple targets? This seems like a reasonable thing to want to
do, e.g., debugging a distributed application of some kind.

Pedro> Consider the extended-remote target --- if you do "add-inferior;
Pedro> <inf 2 created>; inferior 2; run", if we simply had a target
Pedro> stack per inferior, then when you get to "run", you'd only have
Pedro> "exec" on the inferior 2's stack, but you wanted extended-remote
Pedro> to handle creating the inferior.

I don't really know enough about the target API, but this seems fixable.
"Target stack per inferior" does not necessarily imply that the targets
cannot be shared, just that conceptually each inferior carries its own.

Tom