feat: ✨ Add better nm output
Demangle and sort by symbol address.
This commit is contained in:
parent
a95d4e3fb0
commit
637304bdb3
|
@ -49,13 +49,18 @@ script = [
|
||||||
[tasks.gdb-cb]
|
[tasks.gdb-cb]
|
||||||
disabled = true
|
disabled = true
|
||||||
|
|
||||||
[tasks.nm]
|
[tasks.install-nm]
|
||||||
dependencies = ["build", "kernel-binary"]
|
|
||||||
script = [
|
|
||||||
"${NM} -- ${KERNEL_ELF} | sort"
|
|
||||||
]
|
|
||||||
install_crate = { crate_name = "cargo-binutils", binary = "rust-nm", test_arg = ["--help"] }
|
install_crate = { crate_name = "cargo-binutils", binary = "rust-nm", test_arg = ["--help"] }
|
||||||
|
|
||||||
|
[tasks.install-rustfilt]
|
||||||
|
install_crate = { crate_name = "rustfilt", binary = "rustfilt", test_arg = ["--help"] }
|
||||||
|
|
||||||
|
[tasks.nm]
|
||||||
|
dependencies = ["build", "kernel-binary", "install-nm", "install-rustfilt"]
|
||||||
|
script = [
|
||||||
|
"${NM} -- ${KERNEL_ELF} | sort -k 1 | rustfilt"
|
||||||
|
]
|
||||||
|
|
||||||
[tasks.sdcard]
|
[tasks.sdcard]
|
||||||
dependencies = ["build", "kernel-binary"]
|
dependencies = ["build", "kernel-binary"]
|
||||||
script_runner = "@duckscript"
|
script_runner = "@duckscript"
|
||||||
|
|
Loading…
Reference in New Issue