thanks for reply ,but now i also confused,i don’t know how to usr gdb to debug the program, i write a simple program test.c like:
int main(void)
{
int a,b,c;
a=3;
b=4;
c=a+b;
return 0;
}
then i use ```
arm-linux-gcc -g test.c -o test
then ```
arm-linux-gdb test
target remote localhost:3333
to connect to openocd,
then```
load test 0x3000000
then
mon reg pc 0x3000000
is this right?? but when i c use step it error:
can't find the funciton boundary, when use run it error:
don't how to run . the proplem is my unkown or my arm-linux-gdb can't
debug like this way?? should i have compiled arm-linux-gdb to add some option??