使用eclipse远程调试加密卡方法

1. 卡上执行如下命令

gdbserver  10.0.38.2:1234(主机IP 和端口) 调试程序名

2. 设置eclipse

2.1 project->property->build->setting->debugging ,Debug Level修改为:Maximum(-g3). other debugging flags -ggdb3

 Debug-》Configrations

main:

Main->project:tanghhtest(调试程序名)

main->c/c++ Application:Debug/tanghhtest

Debugger:

 Debugger:gdbserver Debugger

main:

GDB debugger:mips64-octeon-linux-gnu-gdb

shared libries:/tftpboot

Connection:

Type:TCP

Host name or IP address:10.0.38.12(卡上ip)

portnum: 1234

Source:/usr/local/Cavium+Networks/OCTEON-SDK/components/crypto-api/core/crypto

search subfolder


要先启动卡上gdbserver再启动主机端调试。

你可能感兴趣的:(eclipse,加密,application,search,debugging)