Open derekbruening opened 2 years ago
A first step would be to at least give an error message in drrun today if attach is requested with a native launcher (though I guess a 3rd party launcher could actually support attach...but right now drrun is not propagated the attach option nor pid arg).
Attach with a tool config file that simply points at a client lib works:
However, a tool config file that provides its own launcher does not work and is misleading as it will do nothing:
For offline the drcachesim launcher is not needed so this is a workaround for offline drmemtrace:
But for online drcachesim, or for Dr. Memory, or other cases where the launcher is required: how to support attach? Each launcher has to include code to use dr_inject_prepare_to_ptrace, dr_inject_prepare_to_attach, dr_inject_process_attach, or whatnot, duplicating whatever drrun is doing?