Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. ~/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
  2.  
  3. $ cat test.c
  4. void _exit(int n) {
  5. for (;;);
  6. }
  7.  
  8. int main() {
  9. return 0;
  10. }
  11.  
  12. $ arm-none-eabi-gcc -g3 -O0 test.c -o test
  13. $ ./gdb -nx test -ex "target sim" -ex "load" -ex "b main" -ex r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement