Running IDB in GDB Mode

From the Emacs* "Tools" menu, select "Debugger..." The following invocation line displays:

 

Run the debugger (like this): gdb

 

Edit the invocation line by typing the path to IDB and the IDB options followed by the target program, and pressing Return. For example:

 

 /opt/intel_idb/bin/idb -gdb -fullname myprogram

 

Emacs will remember the invocation. To debug the same program again, you need only press Return.

By default, Emacs sets its current working directory to be the directory containing the target program. Because the debugger does not do this when invoked directly, you may need to change the source code search path when using the debugger from within Emacs. To set an alternate source code search path, use the debugger map source directory command.

All Emacs* editing functions and GUD key bindings are available. For example:

C-x SPC

 

For more information on Emacs functionality and key bindings, see the Emacs documentation. For example:

 

M-x info

 

Then select the Emacs menu, then the debuggers menu.

XEmacs will come up with the source buffer displayed. Use C-x 2 and a buffer menu to select the control buffer.