Eclipse 使用 Gdb server DEBUG
Scp test
Eclipse 配置
sshpass -p 為自動輸入 sudo passowrd
在Post build 加上此 command
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
新增Debug 組態
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
選擇 C/C++ Remote Application
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
選擇 GDB debugger
Debugger -> GDB debugger -> Debugger Options -> Main Tab:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
選擇 Connection
Debugger -> GDB debugger -> Debugger Options -> Connection:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Server (target)配置
配置網路(已配置可略過):
安裝 gdbserver
執行 command
ref:
https://zh-tw.coderbridge.com/discussions/2ab8f02fd9804d7198ab1d7578ae7454
https://www.eet-china.com/mp/a54821.html
https://www.youtube.com/watch?v=MfdLFKMU4Lw
https://stackoverflow.com/questions/20870338/how-to-terminate-gdbserver