Skip to content

Commit

Permalink
Update nop.md
Browse files Browse the repository at this point in the history
see #696
  • Loading branch information
hugsy committed Aug 10, 2021
1 parent 8ed91f6 commit ea5ecff
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/commands/nop.md
Expand Up @@ -3,11 +3,16 @@
The `nop` command allows you to easily skip instructions.

```
gef➤ nop [-b NUM_BYTES] [-h] [LOCATION]
gef ➤ help nop
Patch the instruction(s) pointed by parameters with NOP. Note: this command is architecture
aware.
Syntax: nop [LOCATION] [--nb NUM_BYTES]
LOCATION address/symbol to patch
--nb NUM_BYTES Instead of writing one instruction, patch the specified number of bytes
```

`LOCATION` indicates the address of the instruction to bypass. If not
specified, it will use the current value of the program counter.

If `-b <bytes>` is entered, gef will explicitly patch the specified number of
If `--nb <bytes>` is entered, gef will explicitly patch the specified number of
bytes. Otherwise it will patch the _whole_ instruction at the target location.

0 comments on commit ea5ecff

Please sign in to comment.