HikariObfuscator/Hikari

The LLVMObfuscation files can't hit breakpoints in the LLVM.xcodeproj

iOSPrincekin opened this issue · 2 comments

Hi:
I wanted to study this project, so I built it into the LLVM.xcodeproj using "cmake -GXcode", after I finished building the Xcode project 'clang' scheme, Xcode ran the clang executable, and I had add breakpoints in the BogusControlFlow.cpp、Obfuscation.cpp files in the Hikari/lib/Transforms/Obfuscation directory, but Xcode not hit the breakpoints not all!
I don't why, but any help will be appreciated!

Clang forks a second clang process by default, which is why you cant break on it.
Use opt would help with debugging

If you absolutely need to use Clang, see https://discourse.llvm.org/t/debugging-clang-with-debugger-breakpoints/53587
However, from my experience there is usually very little need to do so instead of just -S -emit-llvm and opt