mirror of
https://github.com/justinian/jsix.git
synced 2025-12-09 16:04:32 -08:00
Improve debugging functions
- More sensible stack tracer, in C++ (no symbols yet) - Was forgetting to add null frame to new kernel stacks - __kernel_assert was using an old vector - A GP fault will only print its associated table entry
This commit is contained in:
@@ -136,6 +136,10 @@ rule strip
|
||||
strip -g $out; $
|
||||
objcopy --add-gnu-debuglink=$out.debug $out
|
||||
|
||||
rule dump
|
||||
description = Dumping decompiled $name
|
||||
command = objdump -DS $in > $out
|
||||
|
||||
|
||||
{% for target in targets %}
|
||||
subninja {{ target }}/target.ninja
|
||||
@@ -161,6 +165,9 @@ build $builddir/ovmf_vars_d.fd : cp $srcroot/assets/ovmf/x64/ovmf_vars_d.fd
|
||||
build $builddir/popcorn.elf | $builddir/popcorn.elf.debug : strip $builddir/host/popcorn.elf
|
||||
name = kernel
|
||||
|
||||
build $builddir/popcorn.dump : dump $builddir/host/popcorn.elf
|
||||
name = kernel
|
||||
|
||||
build $builddir/popcorn.elf-gdb.py : cp ${srcroot}/assets/debugging/popcorn.elf-gdb.py
|
||||
name = kernel debug python scripts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user