aengelke / instrew

A high performance LLVM-based dynamic binary instrumentation framework
GNU Lesser General Public License v2.1
223 stars 36 forks source link

Add support for debug #8

Closed younghojan closed 6 months ago

younghojan commented 1 year ago

Instrew cannnot be debugged by GDB due to int memfd = memfd_create("instrew_stub", MFD_CLOEXEC);(server/connection.cc), since it creates an anonymous file which is instrew-client. Due to its anonymity, GDB is not able to load any symbols of instrew-client. Therefore, I have added a debug option for Instrew, making it able to be debugged by GDB.

aengelke commented 6 months ago

Thanks for the patches. I went for a simpler approach, though.