drgn-crash¶
Synopsis¶
drgn-crash [VMLINUX] [CORE]
Description¶
drgn-crash runs the drgn debugger in crash(8) compatibility mode.
In this mode, drgn imitates the UI of the crash(8) command,
providing implementations of most of its commands. Additionally, the --drgn
option can be given to any command to print example drgn code that does the
equivalent of the command.
The drgn command can be used to run snippets of drgn code:
%crash> drgn stack_trace(1)[0]["next"].pid
(pid_t)0
Or without arguments to enter drgn’s usual interactive mode:
%crash> drgn
>>>
Documentation of all implemented commands is available online at
https://drgn.readthedocs.io/en/latest/crash_compatibility.html or in-program
with the help command.