From 5da37dd73d8b6c175eedbf4d92307a86ef6b269e Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Wed, 10 Nov 2021 11:58:54 +0300 Subject: Update GDB cheatsheet Signed-off-by: Konstantin Aladyshev --- Lessons/Lesson_42/README.md | 2 ++ 1 file changed, 2 insertions(+) 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 `. + To print CHAR16 string you can use `x /sh ` command. Here is the example how can you print device path: ``` (gdb) p ConvertDevicePathToText(DevicePath, 0, 1) -- cgit v1.2.3-18-g5258