OpenSolaris

You are not signed in. Sign in or register.

MDB Architecture

This page describes the internal architecture of MDB and how the source code is related. At the moment, we are only able to provide a brief overview of the source code layout, but we will follow up with more specific documentation as it is written.

kmdb Architecture

A description of the design and implementation of kmdb can be found here.

Source Code Layout

The vast majority of the code for MDB resides within usr/src/cmd/mdb. A support driver for kmdb can be found in usr/src/uts/common/io/kmdb. The precise layout within these directories can be somewhat confusing, so here is a brief overview. We avoid discussing the MDB makefile system, as this is a family web site.

DirectoryDescription
common/mdbCore MDB infrastructure
common/kmdbCore kmdb infrastructure
common/libstandkmdb support code
common/libstandctfkmdb support code
common/modulesGeneric MDB modules (kernel and userland)
i86pc/modulesx86-specific MDB modules
intel/mdbx86-specific MDB support code
intel/kmdbx86-specific kmdb support code
sparc/mdbSPARC-specific MDB support code
sparc/kmdbSPARC-specific kmdb support code
sun4u/modulessun4u-specific modules
sun4v/modulessun4v-specific modules
demoSample module shipped as /usr/demo/mdb
toolsTools used when building kmdb
uts/common/kmdbkmdb support driver