How to invoke the 2nd pass of the clang compiler manually
How to invoke the 2nd pass of the clang compiler manually
Because the clang front end reexecs itself, breakpoints on the interesting parts of the clang front end don’t get hit by default. Here’s an example
$ cat g2 b llvm::Module::setDataLayout b BackendConsumer::BackendConsumer b llvm::TargetMachine::TargetMachine b llvm::TargetMachine::createDataLayout run -mbig-endian -m64 -c bytes.c -emit-llvm -o big.bc $ gdb `which clang` GNU gdb (GDB) Red Hat…
View On WordPress


















