Download Compaq AA-RH99A-TE User's Manual
Transcript
• During the dbx session, if you want to load a module dynamically, first set the $module_path dbx variable and then use the addobj command to load the module, as in the following example: (dbx) set $module_path /project4/mod_dir (dbx) addobj kmodC To verify that modules are being loaded from the correct location, turn on verbose module-loading using any one of the following methods: • Specify the -module_verbose dbx command option. • Set the DBX_MODULE_VERBOSE environment variable to any integer value. • Set the $module_verbose dbx variable to a nonzero value. 2.1.4 Examining Memory Contents To examine memory contents with dbx, use the following syntax: address/count[mode] The count argument specifies the number of items that the debugger displays at the specified address, and the mode argument determines how dbx displays memory. If you omit the mode argument, the debugger uses the previous mode. The initial default mode is X (hexadecimal). Table 2–1 lists the dbx address modes. Table 2–1: The dbx Address Modes Mode Description b Displays a byte in octal. c Displays a byte as a character. d Displays a short word in decimal. D Displays a long word in decimal. f Displays a single precision real number. g Displays a double precision real number. i Displays machine instructions. n Displays data in typed format. o Displays a short word in octal. O Displays a long word in octal. s Displays a string of characters that ends in a null. x Displays a short word in hexadecimal. X Displays a long word in hexadecimal. Kernel Debugging Utilities 2–5