Daily Shaarli

All links of one day in a single page.

March 1, 2021

How to Debug Programs on Remote Server using GDBServer Example

Quand gdb n'est pas disponible sur votre cible mais que gdbserver est là :)

  • Sur la cible
    • $ gdbserver IP:2000 my_prg
  • Sur votre machine
    • $ gdb my_prg (The executable file and the libraries in the host, must exactly match the executable file and libraries on the target)
    • (gdb) target remote IP:2000