In exercise 3 (link), trace into bootmain() in boot/main.c. When I set breakpoint, it reports not defined like following code snippet.
break <location> sets a breakpoint at the specifiedlocation. Locations can be memory addresses (“*0x7c00”) or names (“monbacktrace”, “monitor.c:71”)
hfyin@hfyin-VirtualBox:~/projects/6.828/jos$ make gdb
gdb -n -x .gdbinit
The target architecture is assumed to be i8086
[f000:fff0] 0xffff0: ljmp $0xf000,$0xe05b
0x0000fff0 in ?? ()
+ symbol-file obj/kern/kernel
(gdb) b bootmain
Function "bootmain" not defined.
Make breakpoint pending on future shared library load? (y or [n])
(gdb)
(gdb) b main.c:40
No source file named main.c.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (main.c:40) pending.
(gdb)
after reading output and lab guide, find out we need set symbol-