Build gdb for remote debug ARM app
2014-06-29 17:21
471 查看
GDB: The GNU Project Debugger
http://www.gnu.org/software/gdb/
Download from: ftp://sourceware.org/pub/gdb/releases/
Build:
PC side:
arm side:
Debug:
PC side:
arm side:
PC side:
http://www.gnu.org/software/gdb/
Download from: ftp://sourceware.org/pub/gdb/releases/
Build:
PC side:
cd /opt/crosstool/src/gdb-7.7.1/ ./configure --target=arm-linux --prefix=/opt/crosstool/arm-gdb make -j4 sudo make install ls /opt/crosstool/arm-gdb/bin arm-linux-gdb arm-linux-run
arm side:
cd /opt/crosstool/src/gdb-7.7.1/gdb/gdbserver/ CC=arm-linux-gcc ./configure --target=arm-linux --host=arm-linux --prefix=/opt/crosstool/arm-gdb/gdbserver make -j4 sudo make install ls /opt/crosstool/arm-gdb/gdbserver/bin/ arm-linux-gdbserver
Debug:
PC side:
cd hello arm-linux-gcc -g -o app hello.c ls app
arm side:
arm-linux-gdbserver pc_ip:port app [app_args ...]
PC side:
cd hello arm-linux-gdb app target remote arm_ip:port
相关文章推荐
- Gradle build error, Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug
- Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.tran
- Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.tran
- 关于android studio 出现Error:Execution failed for task ':app:buildInfoDebugLoader'.的解决办法
- 关于android studio 出现Error:Execution failed for task ':app:buildInfoDebugLoader'.的解决办法
- Error:Execution failed for task ':app:buildInfoDebugLoader'
- Execution failed for task ':app:buildInfoDebugLoader'
- Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.Android.build.api.tran
- 关于android studio 出现Error:Execution failed for task ':app:buildInfoDebugLoader'.的解决办法
- Error:Execution failed for task ':app:buildInfoDebugLoader'. > Exception while doing past iteration
- android studio Error:Execution failed for task ':app:buildInfoDebugLoader'
- Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.tran
- Android Studio运行提示Error:Execution failed for task ':app:buildInfoDebugLoader'
- Error:Execution failed for task ':app:buildInfoDebugLoader'. > Exception while doing past iteration
- 关于Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.tr
- 错误:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transfo
- 错误:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transfo
- Gradle build error, Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug
- Error:Execution failed for task ':app:buildInfoDebugLoader'.
- android studio编程时出现的错误:Error:Execution failed for task ':app:buildInfoDebugLoader'. > Exception whi