Open
Description
opened on Jul 26, 2024
For some strange reason, ::help
doesn't seem to do as much as one might reasonably expect on a Helios system...
This is what it looks like on an OmniOS r151046ac system:
$ LANG=C LC_ALL=C mdb -e '::help dis'
NAME
dis - disassemble near addr
SYNOPSIS
[ addr ] ::dis [-abfw] [-n cnt] [addr]
DESCRIPTION
Disassembles instructions starting at the final argument or the current
value of dot. If the address is the start of a function, the entire
function is disassembled, or else a window of instructions before and after
the disassembled address are displayed.
OPTIONS
-a Print instruction addresses as numeric values instead of
symbolic values.
-b Print instruction addresses as both numeric and symbolic values.
-f Read instructions from the target's object file instead of the
target's virtual address space.
-n instr Display 'instr' instructions before and after the given address.
-w Force window behavior, even at the start of a function.
EXAMPLES
::dis
clock::dis
::dis gethrtime
set_freemem+0x16::dis -n 4
ATTRIBUTES
Target: proc
Module: mdb
Interface Stability: Evolving
And on a Helios 2.0 system:
$ LANG=C LC_ALL=C mdb -e '::help dis'
NAME
dis - disassemble near addr
SYNOPSIS
[ addr ] ::dis [-abfw] [-n cnt] [addr]
ATTRIBUTES
Target: proc
Module: mdb
Interface Stability: Evolving
Metadata
Assignees
Labels
No labels
Activity