mirror of https://github.com/pwndbg/pwndbg.git
mallocng: Implement ng-dump command to dump heap state (#3256)
* implement ng-dump * clarify index * fix rebase * add ability for a property to override color * make color usage more consistent * handle ansii in descriptions properly * add ng-dump test * finish rename * add --meta-area flag to ng-dump * remark on the coloring difference in the command description * clarify nominal size on freed slots * port test to lldb * Update scripts/_docs/gen_docs_generic.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix function name change * Update pwndbg/lib/pretty_print.py * Update pwndbg/commands/mallocng.py * lint --------- Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>pull/3279/head
parent
9cf6092414
commit
4506754bbc
@ -0,0 +1,34 @@
|
||||
<!-- THIS PART OF THIS FILE IS AUTOGENERATED. DO NOT MODIFY IT. See scripts/generate-docs.sh -->
|
||||
# mallocng-dump
|
||||
|
||||
```text
|
||||
usage: mallocng-dump [-h] [-ma META_AREA]
|
||||
|
||||
```
|
||||
|
||||
Dump the mallocng heap.
|
||||
|
||||
May produce lots of output.
|
||||
|
||||
**Alias:** ng-dump
|
||||
### Optional arguments
|
||||
|
||||
|Short|Long|Help|
|
||||
| :--- | :--- | :--- |
|
||||
|-h|--help|show this help message and exit|
|
||||
|-ma|--meta-area|Dump only the meta area at the provided address.|
|
||||
|
||||
### Notes
|
||||
Since the command may produce lots of output, you may want to pipe it to
|
||||
less with `| ng-dump | less -R`.
|
||||
|
||||
The [index] next to the metas is their index in the doubly linked list
|
||||
pointed to by ctx.freed_meta_head. The [index] next to the slots is
|
||||
the slot's index inside of its group (thus, these will always be sequential).
|
||||
|
||||
Notice that the pointers in the output of this command aren't colored according
|
||||
to their mapping's color but rather according to the object's allocation status.
|
||||
Color legend: allocated; freed; available.
|
||||
|
||||
<!-- END OF AUTOGENERATED PART. Do not modify this line or the line below, they mark the end of the auto-generated part of the file. If you want to extend the documentation in a way which cannot easily be done by adding to the command help description, write below the following line. -->
|
||||
<!-- ------------\>8---- ----\>8---- ----\>8------------ -->
|
||||
Loading…
Reference in new issue