Go to main content
Oracle Developer Studio 12.6 Man Pages

Exit Print View

Updated: June 2017
 
 

dbxrc(4)

Name

dbxrc - commands to dbx

Description

The .dbxrc file contains dbx commands executed when you start dbx. It is used primarily for defining aliases and ksh functions, setting dbxenv variables, and defining GUI buttons.

dbx first searches for .dbxrc in the current working directory. If .dbxrc does not exist in the current directory, dbx looks in the user's home directory. If no .dbxrc file is found, the same search is made for the file .dbxinit.

Use the .dbxrc file to configure dbx.

Usage

See the dbx(1) man page for a description of dbx commands.

Examples

Here is an example of a .dbxrc file that a FORTRAN user of dbx might use:

dbxenv stack_max_size 10
dbxenv output_base 16
catch FPE

The output of the dbx command help dbxrc can be used as an initial .dbxrc file. For example:

help dbxrc > .dbxrc

Many helpful ksh functions are documented in this help dbxrc output.

See Also

dbx(1)

Notes

Users of earlier releases of dbx may have used their .dbxrc file to set breakpoints. The modules and Auto-Read facilities now cause dbx to read .dbxrc before the symbol table information rather than after.

As a workaround, you can define an alias in your .dbxrc file which sources another file of dbx commands; you can then set up this additional file to contain the breakpoint-setting commands. Once you have set up this second file with the breakpoint commands, just call the alias immediately after you call dbx.