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文件
傳送可執(zhí)行文件到rk3399
vscode點(diǎn)擊運(yùn)行和調(diào)試
rk3399
gdbserver64 :1234 ./vendor/bin/robot_diagnostics
本文摘自 :https://www.cnblogs.com/