Skip to content

Commit 67f7909

Browse files
author
Austin Clements
committed
Use the symbol file
1 parent 01396b3 commit 67f7909

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.gdbinit.tmpl

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
set $lastcs = -1
22

3-
# This fails on Darwin because the default gdb has no ELF support
4-
# echo + symbol-file obj/kern/kernel\n
5-
# symbol-file obj/kern/kernel
6-
73
define hook-stop
84
# There doesn't seem to be a good way to detect if we're in 16- or
95
# 32-bit mode, but in 32-bit mode we always run with CS == 8 in the
@@ -26,3 +22,6 @@ end
2622

2723
echo + target remote localhost:1234\n
2824
target remote localhost:1234
25+
26+
echo + symbol-file kernel\n
27+
symbol-file kernel

0 commit comments

Comments
 (0)