Skip to content
Snippets Groups Projects
Commit b438eff6 authored by rsc's avatar rsc
Browse files

Have kernel build rule create kernel.sym, which can be
used in Bochs to make breakpoint setting easier:

	load-symbols "kernel.sym"
	vb 0x8:"main0"
	c
	disasm/25 "main0"
	vb 0x8:"main0"+0x5f
	c

etc.
parent c25e0a5f
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,7 @@ kernel : $(OBJS) bootother.S _init
$(OBJDUMP) -S bootother.o > bootother.asm
$(LD) -Ttext 0x100000 -e main0 -o kernel $(OBJS) -b binary bootother _init
$(OBJDUMP) -S kernel > kernel.asm
$(OBJDUMP) -t kernel | awk '/SYMBOL TABLE/ { go=1; next } go {print $$1, $$NF}' >kernel.sym
tags: $(OBJS) bootother.S _init
etags *.S *.c
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment