Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Want updates for MDB module API #88

Open
melloc opened this issue Apr 2, 2019 · 0 comments
Open

Want updates for MDB module API #88

melloc opened this issue Apr 2, 2019 · 0 comments

Comments

@melloc
Copy link
Collaborator

melloc commented Apr 2, 2019

Beyond the functions mentioned in #50 for tab completion, other undocumented functions are:

  • mdb_aread() / mdb_awrite() (added in illumos#3946)
  • mdb_symbol_iter() (added in illumos#3985; a number of new #defines were added for this, and should also be documented)
  • mdb_getareg() / mdb_object_iter() (added in 6935550)
  • mdb_ffs() (added in 6456379, to provide an ffs(3C)-like mechanism)
  • mdb_get_state(), which returns one of:
    • MDB_STATE_IDLE, target is idle (not running yet)
    • MDB_STATE_RUNNING, target is currently executing
    • MDB_STATE_STOPPED, Target is stopped
    • MDB_STATE_UNDEAD, Target is undead (zombie)
    • MDB_STATE_DEAD, target is dead (core dump)
    • MDB_STATE_LOST, target lost by debugger
  • mdb_callback_add() / mdb_callback_remove(), which allow adding and removing callbacks, which will be called either:
    • When the target has changed state after continuing (MDB_CALLBACK_STCHG)
    • Just before printing the prompt (MDB_CALLBACK_PROMPT)

Additionally, there are two exported symbols that should probably be documented:

  • mdb_prop_kernel, "are we looking at a kernel?"
  • mdb_prop_postmortem, "are we looking at a static dump?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant