-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Fix many minor bugs in several scripts #98
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style Q, fine otherwise.
self.__original_disassembler = ctx.instruction_iterator | ||
ctx.instruction_iterator = cs_disassemble | ||
else: | ||
# `use-capstone` set to False | ||
if ctx.instruction_iterator == cs_disassemble and self.__original_disassembler: | ||
if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you prefer this style (four lines) over either 1 line or 2 with parens or 2 with \
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I almost forgot: I started using black
for gef-extras (only for now), and those kind of output were the result. I'm not sure how I feel yet about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah, that may be why I didn't like black (remember I said it was too opinonated and I didn't like the opinion).
I am 100% for auto-formatting everything! That will be nice and easy to check. I don't love black but I could live with it.
for insn in cs_disassemble( | ||
location, length, skip=length * self.repeat_count, **kwargs | ||
): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need (nor do I like) the hanging parens. Wastes lines imo.
for insn in cs_disassemble( | |
location, length, skip=length * self.repeat_count, **kwargs | |
): | |
for insn in cs_disassemble( | |
location, length, skip=length * self.repeat_count, **kwargs): |
Description/Motivation/Screenshots
restored to a workable state - for 2024.01 :
remote
windbg
assemble
libc_function_args
is completely brokenHow Has This Been Tested ?
"Tested" indicates that the PR works and the unit test (i.e.
make test
) run passes without issue.Checklist
adequate tests have been added.
CONTRIBUTING document.