pc端和rk3399 gdb调试

pc端:
CMakeLists.txt
# set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s")

安装gdb-multiarch
apt search gdb-multiarch
sudo apt install gdb-multiarch
which gdb-multiarch

工作空间.vscode目录下添加launch.json文件

传送可执行文件到rk3399

vscode点击运行和调试


rk3399
gdbserver64 :1234 ./vendor/bin/robot_diagnostics

posted on 2021-09-17 11:10  543680484  阅读(339)  评论(0编辑  收藏  举报