blob: 761eeb982d11e9b00a17dfe746ee2020282a56cd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
###################################################################
###################### #############################
### GDB COMMANDS ###
###################### #############################
###################################################################
1. QEMU CONFIGURATION
qemu must be started with "-s" option
(shorthand for "-gdb tcp::1234")
2. GDB PART - CONNECTION
- source gdbscript
(if a gdbscript is created, which contains
add-symbol-file commandos)
- target remote localhost:1234
3. BREAKPOINTS
- b CoreHandleProtocol | or OutputString
4. INFORMATION
- info
files || get Entry point + sections
address SYM
all-registers || all registers & their contents
args || Argument variables of current stack frame
breakpoints
files || Names of targets & files being debugged
functions || all function names
locals || local variables of current stack frame
variables || all gloabl & static variables
5. CONTROL FLOW
- c
- bt || print back_trace of all stack frames
- stop || stop program until it reaches a different source line
6. FILES (perhaps not applicable when debugging with QEMU)
- file MemtestEfi.efi || load file ...no debugging symbols found...done
- file || unload files
7. LIST
- list || list specified function or line
|