Starting a Remote Debugging Session

To start your remote application under debugger control, use the GNU* gdbserver remote agent. The following example shows how to invoke gdbserver remote agent:

 

% gdbserver [host]:port application [application arguments]

 

When the gdbserver launches an application, the terminal window displays service information about the started application and the connection. Issue the following command in another shell session to connect to the remote gdbserver:

 

% idb [idb_options] -remote [host]:port application  [application arguments]

 

or

 

% idb [idb_options] -remote [host]:port