JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Modular Debugger Guide     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Modular Debugger Overview

2.  Debugger Concepts

3.  MDB Language Syntax

4.  Using MDB Commands Interactively

5.  Built-In Commands

6.  Execution Control

7.  Kernel Execution Control

8.  Kernel Debugging Modules

9.  Debugging With the Kernel Memory Allocator

10.  Module Programming API

Debugger Module Linkage

_mdb_init()

_mdb_fini()

Dcmd Definitions

Walker Definitions

API Functions

mdb_pwalk()

mdb_walk()

mdb_pwalk_dcmd()

mdb_walk_dcmd()

mdb_call_dcmd()

mdb_layered_walk()

mdb_add_walker()

mdb_remove_walker()

mdb_vread() and mdb_vwrite()

mdb_fread() and mdb_fwrite()

mdb_pread() and mdb_pwrite()

mdb_readstr()

mdb_writestr()

mdb_readsym()

mdb_writesym()

mdb_readvar() and mdb_writevar()

mdb_lookup_by_name() and mdb_lookup_by_obj()

mdb_lookup_by_addr()

mdb_getopts()

mdb_strtoull()

mdb_alloc(), mdb_zalloc() and mdb_free()

mdb_printf()

Flag Specifiers

Field Width Specifiers

Integer Specifiers

Terminal Attribute Specifiers

Format Specifiers

mdb_snprintf()

mdb_warn()

mdb_flush()

mdb_nhconvert()

mdb_dumpptr() and mdb_dump64()

mdb_one_bit()

mdb_inval_bits()

mdb_inc_indent() and mdb_dec_indent()

mdb_eval()

mdb_set_dot() and mdb_get_dot()

mdb_get_pipe()

mdb_set_pipe()

mdb_get_xdata()

Additional Functions

A.  MDB Options

B.  Notes

C.  Transition From adb and kadb

D.  Transition From crash

Index

Chapter 10

Module Programming API

This chapter describes the structures and functions contained in the MDB debugger module API. The header file <sys/mdb_modapi.h> contains prototypes for these functions, and the source/demo/mdb-examples package provides source code for an example module in the directory /usr/demo/mdb.