-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gdbinit
38 lines (34 loc) · 876 Bytes
/
.gdbinit
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
set output-radix 16
set disassembly-flavor intel
#add-symbol-file build/kernel/x86_64-unknown-none/debug/libjos.a
#set substitute-path /cygdrive/c/Users/Jakob/Documents/workspace/os-series/src/ c:\\Users\\Jakob\\Documents\\workspace\\os-series\\userland\\src\\
#set remote get-thread-information-block-address-packet off
add-symbol-file build/userspace/x86_64-unknown-none/debug/helloworld
display/5i $pc
display/20xg $sp
b *0x100018
commands
add-symbol-file dist/x86_64/kernel.bin
b isr_common_stub
#b irq_common_stub
#b *(irq_common_stub+44)
b *0x0
b *0x2
b *0x3
b *0x4
b *0x5
end
#set logging on
#set height 0
define log_instructions
while $pc >= 0x1000
stepi
end
end
define print_palette
set $i = 0
while $i < 768
printf "%02x %02x %02x\n", *(palette + $i), *(palette + $i + 1), *(palette + $i + 2)
set $i = $i + 3
end
end