From b58bca6fe9ab62adebd8aa855deeeb4b8ae120aa Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 30 Dec 2015 02:18:25 +0100 Subject: [PATCH 1/2] Link Beej's Quick guide Recommended by Julia Evans on hackernews: https://news.ycombinator.com/item?id=10808362 --- pages/set-up-gdb.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/set-up-gdb.md b/pages/set-up-gdb.md index c97b91b6..21496c84 100644 --- a/pages/set-up-gdb.md +++ b/pages/set-up-gdb.md @@ -65,6 +65,8 @@ After connecting to QEMU, you can use various gdb commands to control execution - `list` or `l`: Shows the source code around the current position. - `print` or `p`: Prints the value of a variable. You can use Cs `*` and `&` operators. To print in hexadecimal, use `p/x`. -Of course there are many more commands. Feel free to send a PR if you think this list is missing something important. The [website for Harvard's CS161 course][CS161] has a more complete GDB overview. +Of course there are many more commands. Feel free to send a PR if you think this list is missing something important. For a more complete GDB overview, check out [Beej's Quick Guide][bggdb] or the [website for Harvard's CS161 course][CS161]. + +[bggdb]: http://beej.us/guide/bggdb/ [CS161]: http://www.eecs.harvard.edu/~margo/cs161/resources/gdb.html From 5c6630fa971a633c101eee0de1cc56bf0640cec6 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 30 Dec 2015 02:18:54 +0100 Subject: [PATCH 2/2] Add tui commands --- pages/set-up-gdb.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/set-up-gdb.md b/pages/set-up-gdb.md index 21496c84..1213dbea 100644 --- a/pages/set-up-gdb.md +++ b/pages/set-up-gdb.md @@ -64,7 +64,9 @@ After connecting to QEMU, you can use various gdb commands to control execution - `step` or `s`: Step into the current line, i.e. jump to the called function. Sometimes this doesn't work in Rust OSes. - `list` or `l`: Shows the source code around the current position. - `print` or `p`: Prints the value of a variable. You can use Cs `*` and `&` operators. To print in hexadecimal, use `p/x`. +- `tui enable`: Enables the text user interface, which provides a graphical interface (see below). To disable it again, run `tui disable`. +![gdb text user interface](images/gdb-tui-screenshot.png) Of course there are many more commands. Feel free to send a PR if you think this list is missing something important. For a more complete GDB overview, check out [Beej's Quick Guide][bggdb] or the [website for Harvard's CS161 course][CS161].