Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (1152 KB)
Appendix D Transition From crashThe transition from using the legacy crash utility to using mdb(1) is relatively simple: MDB provides most of the “canned” crash commands. The additional extensibility and interactive features of MDB allow the programmer to explore aspects of the system not examined by the current set of commands. This appendix briefly discusses several features of crash and provides pointers to equivalent MDB functionality. Command-line OptionsThe crash -d, -n, and -w command-line options are not supported by mdb. The crash dump file and name list (symbol table file) are specified as arguments to mdb in the order of name list, crash dump file. To examine the live kernel, the mdb -k option should be specified with no additional arguments. Users who want to redirect the output of mdb to a file or other output destination, should either employ the appropriate shell redirection operator following the mdb invocation on the command line, or use the ::log built-in dcmd. Input in MDBIn general, input in MDB is similar to crash, except that function names (in MDB, dcmd names) are prefixed with “::”. Some MDB dcmds accept a leading expression argument that precedes the dcmd name. Like crash, string options can follow the dcmd name. If a ! character follows a function invocation, MDB will also create a pipeline to the specified shell pipeline. All immediate values specified in MDB are interpreted in hexadecimal by default. The radix specifiers for immediate values are different in crash and MDB as shown in Table D–1: Table D–1 Radix Specifiers
Many crash commands accepted slot numbers or slot ranges as input arguments. The Solaris operating system is no longer structured in terms of slots, so MDB dcmds do not provide support for slot-number processing. Functions
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||