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

Cleanup hexdump code #1279

Merged
merged 2 commits into from
Oct 13, 2022
Merged

Cleanup hexdump code #1279

merged 2 commits into from
Oct 13, 2022

Conversation

gsingh93
Copy link
Member

@gsingh93 gsingh93 commented Oct 13, 2022

Some minor cleanup of the hexdump code. Also sets the default group width to -1, which is the architecture pointer size.

@gsingh93 gsingh93 marked this pull request as draft October 13, 2022 03:22
@gsingh93 gsingh93 force-pushed the hexdump branch 2 times, most recently from 8680e94 to c5aa66e Compare October 13, 2022 03:35
@@ -13,7 +13,7 @@
pwndbg.config.Parameter("hexdump-bytes", 64, "number of bytes printed by hexdump command")
pwndbg.config.Parameter(
"hexdump-group-width",
4,
-1,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any objections to this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really, I think it is fine

@gsingh93 gsingh93 marked this pull request as ready for review October 13, 2022 16:24
@codecov-commenter
Copy link

Codecov Report

Merging #1279 (6bf1e01) into dev (084eb36) will decrease coverage by 0.02%.
The diff coverage is 65.38%.

@@            Coverage Diff             @@
##              dev    #1279      +/-   ##
==========================================
- Coverage   55.28%   55.26%   -0.03%     
==========================================
  Files         185      185              
  Lines       20324    20317       -7     
  Branches     1884     1881       -3     
==========================================
- Hits        11237    11229       -8     
- Misses       8658     8660       +2     
+ Partials      429      428       -1     
Impacted Files Coverage Δ
pwndbg/color/hexdump.py 100.00% <ø> (ø)
tests/test_windbg.py 100.00% <ø> (ø)
pwndbg/commands/hexdump.py 65.51% <37.50%> (-4.86%) ⬇️
pwndbg/hexdump.py 91.80% <76.47%> (+2.91%) ⬆️
tests/test_hexdump.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@gsingh93 gsingh93 merged commit 4647ccc into pwndbg:dev Oct 13, 2022
@gsingh93 gsingh93 deleted the hexdump branch October 13, 2022 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants