Skip to content

Commit

Permalink
Specify more accurate alternative gdb commands for stepping
Browse files Browse the repository at this point in the history
"ds" in radare2 steps by instructions, whereas "n" in gdb
steps by source code lines (when they are availabe).
To step by instructions there is "ni" command.
Also both gdb "n" and "ni" commands step over function calls.

More accurate alternative would be gdb "si" command,
which steps by instructions and steps into functions calls.
  • Loading branch information
geochip authored and trufae committed Jan 10, 2025
1 parent 791e84e commit cde4370
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/debugger/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ To get `#!python` and much more, just build [radare2-bindings](https://github.co
| Start Process / Continue execution | `F9` | `dc` | `F9` | `r` and `c` | `g` |
| Terminate Process | `Ctrl+F2` | `dk 9` | ? | `kill` | `q` |
| Detach | `?` | `o-` | ? | `detach` | |
| step into | `F7` | `ds` | `s` | `n` | `t` |
| step into 4 instructions | ? | `ds 4` | `F7` | `n 4` | `t 4` |
| step over | `F8` | `dso` | `S` | `s` | `p` |
| step into | `F7` | `ds` | `s` | `si` | `t` |
| step into 4 instructions | ? | `ds 4` | `F7` | `si 4` | `t 4` |
| step over | `F8` | `dso` | `S` | `ni` | `p` |
| step until a specific address | ? | `dsu <addr>` | ? | `s` | `g <addr>` |
| Run until return | `Ctrl+F7` | `dcr` | ? | `finish` | `gu` |
| Run until cursor | `F4` | [#249](https://github.com/radareorg/radare2/issues/249) | [#249](https://github.com/radareorg/radare2/issues/249) | N/A | N/A |
Expand Down

0 comments on commit cde4370

Please sign in to comment.