# on host
arm-linux-gnueabihf-gcc -g -o main main.c
scp main use@ip:/home/user
# on remote(arm)
# 172.25.115.195 is arm ip address
# 13000 is port to debug, can be any
cd /home/user
gdbserver 172.25.115.195:13000 main
# on host
arm-linux-gnueabihf-gdb main
target remote 172.25.115.195:13000
# set break point
gdb:b main
# continue to run
gdb:c
# read variable i
gdb:p i
08-22
2235
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交