1

There is a running process on remote machine which we call "compute machine", where regular login are disabled. How do I attach the debugger [gdb/ddd] to the process running on remote machine [compute machine]. 'Attach Process' on ddd GUI cannot see the PID of the process running on remote machine.

guillaume31
  • 13,738
  • 1
  • 32
  • 51
Mike
  • 1,205
  • 3
  • 12
  • 21
  • Is your "ddd" related to "Domain driven design"? – Yugang Zhou Mar 03 '14 at 02:50
  • Have you read [20 Debugging Remote Programs](https://sourceware.org/gdb/onlinedocs/gdb/Remote-Debugging.html), though I am not sure this is feasible in your situation. – Lee Duhem Mar 03 '14 at 03:31
  • You need to run the gdb server on the remote machine. Say `man gdbserver`. To use with `ddd`, see [this](http://stackoverflow.com/questions/15096506/starting-ddd-with-remote-gdbserver). – n. m. could be an AI Mar 03 '14 at 14:31
  • For combination with username/password access, I'm trying to combine the approach given by n.m. with [this](http://stackoverflow.com/questions/24013387/connect-gdb-client-through-terminal-server-with-authentication). Not sure if it works yet. Will update. – starturtle Aug 03 '16 at 12:43

1 Answers1

0

GDB is not aware of what append in your "compute machine" if you don't use gdbserver But, if you use a ARM based board as "compute machine" you can give a try at OpenOCD (+GDB) and its RTOS awarness.

VivienG
  • 2,143
  • 3
  • 24
  • 43