711890bc9379ceea66272dc8d4981812224ea86ejc# CDDL HEADER START
711890bc9379ceea66272dc8d4981812224ea86ejc# The contents of this file are subject to the terms of the
711890bc9379ceea66272dc8d4981812224ea86ejc# Common Development and Distribution License, Version 1.0 only
711890bc9379ceea66272dc8d4981812224ea86ejc# (the "License"). You may not use this file except in compliance
711890bc9379ceea66272dc8d4981812224ea86ejc# with the License.
711890bc9379ceea66272dc8d4981812224ea86ejc# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
711890bc9379ceea66272dc8d4981812224ea86ejc# See the License for the specific language governing permissions
711890bc9379ceea66272dc8d4981812224ea86ejc# and limitations under the License.
711890bc9379ceea66272dc8d4981812224ea86ejc# When distributing Covered Code, include this CDDL HEADER in each
711890bc9379ceea66272dc8d4981812224ea86ejc# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
711890bc9379ceea66272dc8d4981812224ea86ejc# If applicable, add the following below this CDDL HEADER, with the
711890bc9379ceea66272dc8d4981812224ea86ejc# fields enclosed by brackets "[]" replaced with your own identifying
711890bc9379ceea66272dc8d4981812224ea86ejc# information: Portions Copyright [yyyy] [name of copyright owner]
711890bc9379ceea66272dc8d4981812224ea86ejc# CDDL HEADER END
711890bc9379ceea66272dc8d4981812224ea86ejcCopyright 2005 Sun Microsystems, Inc. All rights reserved.
711890bc9379ceea66272dc8d4981812224ea86ejcUse is subject to license terms.
711890bc9379ceea66272dc8d4981812224ea86ejc#ident "%Z%%M% %I% %E% SMI"
711890bc9379ceea66272dc8d4981812224ea86ejc1. Introduction
711890bc9379ceea66272dc8d4981812224ea86ejcThis directory contains source code for sample debugger modules for the Modular
711890bc9379ceea66272dc8d4981812224ea86ejcDebugger (MDB). These modules demonstrate how developers can use the MDB
Guide". This document is available on-line at http://docs.sun.com.
Makefile.sparc - rules for building 32-bit SPARC objects
Makefile.sparcv9 - rules for building 64-bit SPARC objects
Makefile.i386 - rules for building 32-bit x86 objects
Makefile.amd64 - rules for building 64-bit x86 objects
The Makefile.common file adds common compiler and linker flags to these base
at the top of Makefile.common. For example, if you create a new module source
file common/mymodule.c, you should change:
make clean.lint - remove lint files from build directories
> ::set -L %o:/usr/demo/mdb/%i
/usr/bin/echo or MDB's built-in ::echo dcmd. ::vminfo is a command to read
similar to the /usr/bin/ps command or MDB's ::ps dcmd. This example
module has a debugging module named "ip.so".