In This Book

Be aware that the macros a￿ect the input syntax of commands but have no

e￿ect on the way the debugger formats its output. Debugger command output does not resemble xdb output.

Compatibility with dbx

The debugger provides a set of commands that make dbx and debugger commands compatible. Compatibilit y commands for dbx consist of the pre￿x dbx_ and standard dbx syntax. For example, the debugger command break 27 and the compatibilit y commands dbx_stop at 27 both set a breakpoint at line 27.

The command ￿le /opt/langtools/dde/contrib/dbx_macros de￿nes macros that let you enter dbx commands without pre￿xes. For example, you can specify stop at 27 rather than dbx_stop at 27. You can read the macros directly into your debugging session with the following command:

</opt/langtools/dde/contrib/dbx_macros

Alternativ ely, you can copy the command into a .dderc ￿le in your home directory. The debugger automatically reads that ￿le at startup.

See \Using a Personal Startup File to Customize the Debugger" for details on

6

 

creating a .dderc ￿le.

 

Using the compatibilit y macros in the dbx_macros command ￿le masks out

 

some debugger commands. That is, the debugger executes the macro instead of

 

the debugger command. Debugger commands that are masked out by macros

 

remain available through the menus. Pre￿xing the command with a period

 

(.) also inhibits macro expansion. For example, the dbx_macros command

 

￿le de￿nes a step macro. You can type .step to invoke the debugger's step

 

command rather than the step macro.

 

Be aware that the macros a￿ect the input syntax of commands but ha ve no

 

e￿ect on the way the debugger formats its output. Debugger command output

 

does not resemble dbx output.

 

Customizing the Debugger 6-9