Created
January 10, 2018 06:57
-
-
Save tetsu-koba/7b6a8c5c009edb5cbcf0641397864082 to your computer and use it in GitHub Desktop.
How to setup gdb for cross debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to setup gdb for cross debugging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set sysroot ../buildroot/buildroot-2016.05/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/ | |
target remote 192.168.129.32:1234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
func1() | |
{ | |
while (1) { | |
func2(); | |
} | |
} | |
int cnt; | |
func2() | |
{ | |
sleep(2); | |
printf("cnt=%d\n", cnt); | |
cnt++; | |
} | |
main() | |
{ | |
func1(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment