diff options
author | Konstantin Aladyshev <aladyshev22@gmail.com> | 2021-11-10 11:58:54 +0300 |
---|---|---|
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | 2021-11-10 11:58:54 +0300 |
commit | 5da37dd73d8b6c175eedbf4d92307a86ef6b269e (patch) | |
tree | ababfdd115622a634a1ed235c1f58c669b62a507 /Lessons | |
parent | d7a8fa081fdd103bce648d0da228dbb550480a19 (diff) | |
download | UEFI-Lessons-5da37dd73d8b6c175eedbf4d92307a86ef6b269e.tar.gz UEFI-Lessons-5da37dd73d8b6c175eedbf4d92307a86ef6b269e.tar.bz2 UEFI-Lessons-5da37dd73d8b6c175eedbf4d92307a86ef6b269e.zip |
Update GDB cheatsheet
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Diffstat (limited to 'Lessons')
-rw-r--r-- | Lessons/Lesson_42/README.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lessons/Lesson_42/README.md b/Lessons/Lesson_42/README.md index 1074dfe..9e7474f 100644 --- a/Lessons/Lesson_42/README.md +++ b/Lessons/Lesson_42/README.md @@ -377,6 +377,8 @@ In the end `run_gdb_ovmf.sh` would provide similar `tmux` session. The only diff - `Ctrl+n` - next GDB command in history - `Ctrl+x` and `o` - change active window in tui mode +To print variable value in hexadecimal use `p/x <variable>`. + To print CHAR16 string you can use `x /sh <addr>` command. Here is the example how can you print device path: ``` (gdb) p ConvertDevicePathToText(DevicePath, 0, 1) |