123
DRAFT FROM Solaris Internals 2nd Edition: See solarisinternals.com
3
The Modular Debugger
T
his chapter broadly explains how to use the Modular Debugger, MDB, to
debug systems and applications. It leads to the full reference for MDB, which is
available in the Solaris
Modular Debugger Guide
. We have structured this chapter
in the following main sections:
“Introduction to the Modular Debugger” on page 123 — background and the-
ory of MDB.
“Getting Started with MDB” on page 129 — a hands-on tour of MDB features.
“Debugging Kernel Cores” on page 154 — a hands-on guide to kernel-related
MDB features. Start here if you want skip the longer tutorial on MDB, and
jump right into MDB’s core commands.
“
kmdb
, the Kernel Modular Debugger” on page 178 — Debugging a live ker-
nel with
kmdb
.
“
kmdb
Implementation” on page 185 — The architecture and implementation
of the kernel MDB.
References:
GDB-to-MDB Migration
;
MDB Command Reference
.
3.1 Introduction to the Modular Debugger
If you were a detective investigating the scene of a crime, you might interview wit-
nesses and ask them to describe what happened and who they saw. However, if
With contributions from Mike Shapiro, Eric Schrock and Matt Simmons
chpt_mdb_os.fm Page 123 Monday, January 30, 2006 1:11 PM
评论2
最新资源