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
本文摘自 :https://www.cnblogs.com/