Attaching the debugger to a running process should work again
(reported by Eric Pouech). Misc cleanups.

7 files changed