Go to main content

Oracle® Solaris Modular Debugger Guide

Exit Print View

Updated: February 2021

Watchpoint Length Specifier Differences Between adb and MDB

The watchpoint length specifier syntax recognized by MDB is different from the syntax described in adb. In particular, the adb watchpoint commands :w, :a, and :p allow an integer length in bytes to be inserted between the colon and the command character. In MDB, the count should be specified following the initial address as a repeat count. Stated simply, these adb commands:


are specified in MDB as:


The MDB ::wp dcmd provides more complete facilities for creating user process watchpoints. Similarly, the legacy kadb length modifier command $l is not supported. Therefore, the watchpoint size should be specified to each ::wp command used in kmdb.