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:
You can execute a step command by typing the command in the GUD buffer.
You can select a line of code in the current source buffer and type a command to set a breakpoint at that position:
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.