Debugging LLVM/Clang with GDB

From Dmz-portal

Jump to: navigation, search
If you are running from clang, and your normal command line is:

/local/llvmpb_config/install/bin/clang -target mipsel-linux-gnu floor1.c -o floor1.s -mips16 -S -fPIC -fno-vectorize

Then you would do.

gdb /local/llvmpb_config/install/bin/clang
(gdb) set follow-fork-mode child 
run -target mipsel-linux-gnu floor1.c -o floor1.s -mips16 -S -fPIC -fno-vectorize
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox