-
-
Notifications
You must be signed in to change notification settings - Fork 746
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
Update break commands #702
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.
just wording nits. Looks good.
docs/commands/pie.md
Outdated
``` | ||
gef➤ pie <sub_commands> | ||
``` | ||
The `pie` command provides a useful way to set breakpoint to a PIE enabled |
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.
Let's fix up the wording.
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.
Is it better now?
docs/commands/pie.md
Outdated
``` | ||
The `pie` command provides a useful way to set breakpoint to a PIE enabled | ||
binary. `pie` command then provides what we call "PIE breakpoints". A PIE | ||
breakpoint is just a virtual breakpoint which will be turned to a real |
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 this level of detail the. Maybe just mention that it's handy to resolve to addresses that aren't static.
docs/commands/pie.md
Outdated
``` | ||
|
||
### `pie info` command ### | ||
|
||
Since PIE breakpoint is not real breakpoint, this command provide a way to observe the | ||
state of all PIE breakpoints. | ||
Since a PIE breakpoint is not a real breakpoint, this command provide a way to |
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.
typo provide -> provides
docs/commands/pie.md
Outdated
|
||
You can ignore VNum argument to get info of all PIE breakpoints. | ||
You can ommit the VNum argument to get the info on all PIE breakpoints. |
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.
typo ommit -> omit
gef.py
Outdated
@@ -4499,21 +4499,20 @@ def do_invoke(self, argv): | |||
|
|||
@register_command | |||
class PieBreakpointCommand(GenericCommand): | |||
"""Set a PIE breakpoint.""" | |||
"""Set a PIE breakpoint at an offset to the target binaries base address.""" |
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.
nit: offset from
All good for merge AFAIC after @Grazfather 's suggestions are added |
docs/commands/pie.md
Outdated
The VNum is the virtual number, which is the number of the PIE breakpoint. The Num is the | ||
number of the according real breakpoint number in gdb. Address is the PIE breakpoint's | ||
address. | ||
VNum stands for virtual number and is used to numerate the PIE breakpoints and |
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.
enumerate.
Then new sentence before "Num is.."
docs/commands/pie.md
Outdated
|
||
You can ignore VNum argument to get info of all PIE breakpoints. | ||
You can omit the VNum argument to get the info on all PIE breakpoints. |
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.
no the
in the info
Update break commands
Description/Motivation/Screenshots
This PR is part of #693 and covers the following points:
name-break
cmd by usingparse_address()
now.name-break
docs.pie breakpoint
takes an offset (or symbol) as an argument and not an absolute address.pie breakpoint
.pie
commands documentation and usage instructions.How Has This Been Tested?
make test
Checklist
dev
branch, notmaster
.