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

removed hexdump, added memdump #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

removed hexdump, added memdump #16

wants to merge 1 commit into from

Conversation

vittorioc
Copy link

Cleaned and refactored the memory dump section.

Major changes:

  • Removed: hex_quad, hexdump, hexdump_aux, ddump, dd
  • Added: memdump, memdump_hex, memdump_ascii

Minor changes:

  • Added: $MEMDUMP_..., $CONTEXTSIZE_STACK_DIRECTION, $CONTEXTSIZE_DATA_DIRECTION
  • Renamed $SHOWSTACK to $SHOWSTACKWIN
  • Renamed $CONTEXTSIZE_* to $CONTEXTSIZE_*_LINES

@vittorioc
Copy link
Author

  • Now you can format memory dump for [stack] and [data]:
  • Example 1:

set $MEMDUMP_BYTES_PER_GROUP = 0x1
set $MEMDUMP_GROUPS_PER_SUPERGROUP = 0x8
set $MEMDUMP_SUPERGROUPS_PER_LINE = 0x2

0x00007FFFFFFFDDE8 : 70 03 3E BD BD A0 0A CF - 40 04 40 00 00 00 00 00 p.>.....@.@.....

  • Example 2:

set $MEMDUMP_BYTES_PER_GROUP = 0x2
set $MEMDUMP_GROUPS_PER_SUPERGROUP = 0x4
set $MEMDUMP_SUPERGROUPS_PER_LINE = 0x2

0x00007FFFFFFFDDE8 : 0370 BD3E A0BD CF0A - 0440 0040 0000 0000 p.>.....@.@.....

  • Example 3:

set $MEMDUMP_BYTES_PER_GROUP = 0x4
set $MEMDUMP_GROUPS_PER_SUPERGROUP = 0x1
set $MEMDUMP_SUPERGROUPS_PER_LINE = 0x4

0x00007FFFFFFFDDE8 : BD3E0370 - CF0AA0BD - 00400440 - 00000000 p.>.....@.@.....

  • Now you can choose whether or not to visualize HEX section in memory dump:

(show hex) set $MEMDUMP_HEX = 1
(hide hex) set $MEMDUMP_HEX = 0

(show ascii) set $MEMDUMP_ASCII = 1
(hide ascii) set $MEMDUMP_ASCII = 0

  • Now you can choose [stack] and [data] addresses order ascending or descending:

([stack] addresses in ascending order) set $CONTEXTSIZE_STACK_DIRECTION = 0
([stack] addresses in descending order) set $CONTEXTSIZE_STACK_DIRECTION = 1

([data] addresses in ascending order) set $CONTEXTSIZE_DATA_DIRECTION = 0
([data] addresses in descending order) set $CONTEXTSIZE_DATA_DIRECTION = 1

@GitMensch
Copy link

GitMensch commented May 18, 2021

That looks like a very nice addition. @vittorioc do you mind to solve the conflicts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants