Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The LLVMObfuscation files can't hit breakpoints in the Xcode project #170

Open
iOSPrincekin opened this issue Aug 8, 2022 · 2 comments
Open

Comments

@iOSPrincekin
Copy link

iOSPrincekin commented Aug 8, 2022

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

@iOSPrincekin iOSPrincekin changed the title The LLVMObfuscation files can't hit breakpoint in the Xcode project The LLVMObfuscation files can't hit breakpoints in the Xcode project Aug 8, 2022
@jowehrli
Copy link
Collaborator

jowehrli commented Aug 9, 2022

Hey @iOSPrincekin ,

Are you compiling something with the new clang? Did you add the flag to activate the obfuscation (e.g.: -mllvm -fla)?

@iOSPrincekin
Copy link
Author

Hey @iOSPrincekin ,

Are you compiling something with the new clang? Did you add the flag to activate the obfuscation (e.g.: -mllvm -fla)?

what new clang? I use the "llvm-4.0" branch of obfuscator.git to build clang and I run the clang with options "-mmacosx-version-min=10.5 -S -emit-llvm -mllvm -sub -mllvm -sub_loop=-3 -mllvm -fla -mllvm -bcf -mllvm -debug -mllvm -bcf_loop=-3 -fno-experimental-new-pass-manager /Users/lee/Desktop/TONGDUN/S/obfuscator/obfuscator/ollvmtests/main.c -o /Users/lee/Desktop/TONGDUN/S/obfuscator/obfuscator/ollvmtests/main.ll"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants