Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~/src/binutils-gdb/configure 'CC=ccache gcc-9' 'CXX=ccache g++-9' '--disable-binutils' '--disable-gold' '--disable-ld' '--disable-gprof' '--disable-gas' '--with-python=python3' 'CFLAGS=-g3 -O0 -fdiagnostics-color=always -fmax-errors=1 -fsanitize=address' 'CXXFLAGS=-g3 -O0 -fdiagnostics-color=always -fmax-errors=1 -fsanitize=address' 'LDFLAGS=-fuse-ld=gold -fsanitize=address' '--prefix=/usr' --target=arm-none-eabi
- $ cat test.c
- void _exit(int n) {
- for (;;);
- }
- int main() {
- return 0;
- }
- $ arm-none-eabi-gcc -g3 -O0 test.c -o test
- $ ./gdb -nx test -ex "target sim" -ex "load" -ex "b main" -ex r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement