Changes between Initial Version and Version 1 of gdb_remote


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

--

Legend:

Unmodified
Added
Removed
Modified
  • gdb_remote

    v1 v1  
     1= GDB remote debugging =
     2
     3== gdbserver binary ==
     4I compiled the attached gdbserver binary using the arm-linux-gnueabi toolchain using the -static link flag.
     5
     6It can be used without any extra software on the arm device.
     7
     8Copy it to the phone using:
     9
     10{{{
     11adb push gdbserver /data/local
     12}}}
     13
     14=== Starting gdbserver ===
     15Start debugging your remote executable using:
     16{{{
     17/data/local/gdbserver :3050 ./gdbtst
     18}}}
     19Assuming the the file gdbtest is the executable that you want to debug and the executable is in your current directory
     20=== Redirect a port ===
     21On your local PC use:
     22{{{
     23adb forward tcp:1234 tcp:3050
     24}}}
     25to forward the local port 1234 to the remote port 3050
     26=== Debug ===
     27Start the debugger using:
     28{{{
     29arm-linux-gnueabi-gdb ./gdbtst
     30}}}
     31And the in gdb use
     32{{{
     33target remote :1234
     34}}}
     35to start the remote debug session.