Skip to content

Instantly share code, notes, and snippets.

@tetsu-koba
Created January 10, 2018 06:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tetsu-koba/7b6a8c5c009edb5cbcf0641397864082 to your computer and use it in GitHub Desktop.
Save tetsu-koba/7b6a8c5c009edb5cbcf0641397864082 to your computer and use it in GitHub Desktop.
How to setup gdb for cross debugging
How to setup gdb for cross debugging
set sysroot ../buildroot/buildroot-2016.05/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/
target remote 192.168.129.32:1234
#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