session:04-gdb
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| session:04-gdb [2018/06/16 08:42] – [Basic stuff] Rareş-Mihail VISALOM (67101) | session:04-gdb [2020/07/19 09:49] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| Although it is a powerful tool, gdb is pretty cumbersome to use by itself. Even simple tasks such as execution tracing are made difficult by the lack of " | Although it is a powerful tool, gdb is pretty cumbersome to use by itself. Even simple tasks such as execution tracing are made difficult by the lack of " | ||
| Line 28: | Line 28: | ||
| set history size 32768 | set history size 32768 | ||
| set history expansion on | set history expansion on | ||
| + | |||
| + | # By default peda clears the screen after most commands, displaying a single | ||
| + | # context frame at a time and allowing you to access the previous/ | ||
| + | # using Shift+PageUp/ | ||
| + | # terminal, leaving you unable to access any older information. If that is the | ||
| + | # case, uncomment the following line: | ||
| + | # | ||
| + | #pset opt clearscr off | ||
| </ | </ | ||
| ====== Basic stuff ====== | ====== Basic stuff ====== | ||
| Line 172: | Line 180: | ||
| Breakpoint 1, 0x080484fc in my_strcmp () | Breakpoint 1, 0x080484fc in my_strcmp () | ||
| </ | </ | ||
| - | If you remember from the last session, the parameters passed to a function are on the stack. Because we have just arrived at this function using a '' | + | If you remember from the last session, the parameters passed to a function are on the stack. Because we have just arrived at this function using a '' |
| Note that peda automatically // | Note that peda automatically // | ||
session/04-gdb.1529138577.txt.gz · Last modified: by Rareş-Mihail VISALOM (67101)
