Chapter 13. An MDB Tutorial

Contributions from Mike Shapiro, Matthew Simmons, and Eric Schrock

In this chapter, we take a tour of MDB basics, from startup through elements (command syntax, expressions, symbols, and other core concepts), via simple procedures illustrated by examples.

Invoking MDB

MDB is available on Solaris systems as two commands that share common features:mdb and kmdb. You can use the mdb command interactively or in scripts to debug live user processes, user process core files, kernel crash dumps, the live operating system, object files, and other files. You can use the kmdb command to debug the live operating system kernel and device drivers when you also need to control and halt the execution of the kernel. To start mdb, execute ...

Get Solaris™ Performance and Tools: DTrace and MDB Techniques for Solaris 10 and OpenSolaris now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.