Changes between Version 2 and Version 3 of gdb_remote


Ignore:
Timestamp:
04/17/11 20:37:57 (13 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • gdb_remote

    v2 v3  
    4141== Using Eclipse ==
    4242The goal of this exercise is to use the Eclipse IDE for remote debugging.
     43
     44Create a normal Standard Makefile C Project in Eclipse, create a Makefile for the arm-linux-gnueabi toolchain(attached there is a sample for the program gdbtst) and compile the project.
     45
     46Create a gdb command file and put it somewhere in the home directory. The content of mine is:
     47{{{
     48set remotetimeout 0
     49set solib-absolute-prefix /usr/arm-linux-gnueabi/lib/
     50}}}
     51
     52=== Debug Configuration ===
     53Create a Debug Configuration using the following steps:
     54* From the Menu select: Run -> Debug Configurations...
     55* In the Dialog press the "New lauch configuration"
     56==== Main-Tab ====
     57In the Main-Tab enter the following info:
     58* project
     59* C/C++ Application (from the file system using the Browse Button)
     60==== Debugger-Tab ====
     61In the Debugger-Tab enter the following info (Sub Tabs are indicated by <Tabname> - <Field>:
     62* Debugger = gdbserver Debugger
     63* Main - GDB Debugger: /usr/bin/arm-linux-gnueabi-gdb
     64* Main - GDB Command file: <path to the command file you created>
     65* Shared Libraries - Load shared library symbols automatically: Check
     66* Connection - Type: TCP
     67* Connection - Host name or IP address: localhost
     68* Connection - Port number: 1234
     69
     70Save you config and start debugging !