perforator icon indicating copy to clipboard operation
perforator copied to clipboard

is it possible to attach to PID?

Open LilyaBu opened this issue 4 years ago • 3 comments
trafficstars

Hello, @zyedidia. Is it possible to attach to PID?

LilyaBu avatar Jan 18 '21 13:01 LilyaBu

It’s not currently possible but I think it could be implemented. You would have to also supply the name of the elf file the process was started with so that it could be searched for functions. I’ll look into this.

zyedidia avatar Jan 18 '21 16:01 zyedidia

I've implemented initial support for attaching on the attach branch. I'm not completely satisfied with it yet and it only supports the single-threaded case right now, but hopefully it is still useful.

zyedidia avatar Jan 21 '21 21:01 zyedidia

Thank you for so quick answer! I will try, but my application is multi-thread.

LilyaBu avatar Jan 26 '21 08:01 LilyaBu