Skip to content

Commit bc91528

Browse files
committed
dbgutil: add more usage tips for gdb
1 parent 07a9c0c commit bc91528

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

dbgutil/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,29 @@ set python print-stack full
9595
9696
If you're running into this often (i.e. when developing on the utilities), you
9797
can add this to your `~/.gdbinit` file.
98+
99+
### GDB keeps prompting about pagination (e.g. "press 'C' to continue without paging")
100+
101+
Add this to your `~/.gdbinit` file:
102+
103+
```
104+
set pagination off
105+
```
106+
107+
### It's hard to debug the assembly in the kernel vs gdb due to syntax.
108+
109+
Add this to your `~/.gdbinit` file or run it manually:
110+
111+
```
112+
set disassembly-flavor intel
113+
```
114+
115+
### I want to run the kernel from the CLI in one command.
116+
117+
You can append `-ex <cmd>` to the command line, multiple times if need be,
118+
to run the command after the inferior (kernel) and `~/.gdbinit` have been
119+
loaded:
120+
121+
```
122+
gdb path/to/kernel -ex 'oro boot limine'
123+
```

0 commit comments

Comments
 (0)