Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MhmRhm authored Dec 3, 2024
1 parent 7c912be commit 6f31787
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2233,8 +2233,15 @@ to examine an address.
to show variables history.
```bash
(gdb) info registers
(gdb) p/x $pc # for program counter
(gdb) x/i $pc # for next instruction
(gdb) p/x $sp # for top of the stack
(gdb) p/x $fp # for current stack
(gdb) help function
(gdb) break <function> if $_any_caller_matches("<pattern>", <depth>)
(gdb) show convenience
(gdb) print $_inferior
(gdb) print $_thread
Expand All @@ -2246,7 +2253,7 @@ to show variables history.
(gdb) print $_gdb_major
(gdb) print $_gdb_minor
```
to work with convenience functions and variables.
to work with registers, convenience functions and variables.
```bash
(gdb) compare-sections
Expand Down

0 comments on commit 6f31787

Please sign in to comment.