(ddd.info)Remote Program


Prev: Remote Debugger Up: Remote Debugging
Enter node , (file) or (file)node

2.4.3 Debugging a Remote Program
--------------------------------

The GDB debugger allows you to run the _debugged program_ on a remote
machine (called _remote target_), while GDB runs on the local machine.

   Note: Remote Debugging, for details.  Basically, the
following steps are required:

   * Transfer the executable to the remote target.

   * Start `gdbserver' on the remote target.

   * Start DDD using GDB on the local machine, and load the same
     executable using the GDB `file' command.

   * Attach to the remote `gdbserver' using the GDB `target remote'
     command.  

   The local `.gdbinit' file is useful for setting up directory search
paths, etc.

   Of course, you can also combine DDD remote mode and GDB remote mode,
running DDD, GDB, and the debugged program each on a different machine.


automatically generated by info2www version 1.2.2.9