When you start dbx, if you do not specify the –S option, dbx looks for the installed startup file, dbxrc, in the directory /install-dir/lib. The default installation directory is /opt/solstudio12.4 on Oracle Solaris platforms and /opt/oracle/solstudio12.4 on Linux platforms. If your Oracle Developer Studio software is not installed in the default directory, dbx derives the path to the dbxrc file from the path to the dbx executable.
Then dbx searches for a .dbxrc file in the current directory, then in $HOME. You can specify a different startup file than .dbxrc explicitly by specifying the file path using the -s option. For more information, see Using the dbx Initialization File.
A startup file can contain any dbx command and commonly contains the alias command, dbxenv command, pathmap command, and Korn shell function definitions. However, certain commands require a program to have been loaded or a process to have been attached. All startup files are loaded before the program or process is loaded. The startup file might also source other files using the source or .(period) command. You can also use the startup file to set other dbx options.
As dbx loads program information, it prints a series of messages, such as Reading filename.
Once the program is finished loading, dbx is in a ready state, visiting the main block of the program (for C or C++: main(); for Fortran: MAIN()). Typically, you set a breakpoint (for example, stop in main) and then issue a run command for a C program.