Add nm helper target
This commit is contained in:
parent
6da44a69ac
commit
79028dba96
|
@ -80,6 +80,12 @@ just gdb
|
|||
|
||||
If you launch OpenOCD or QEMU before, then gdb shall connect to it and allow you to load the kernel binary directly into memory. Type `load` in gdb to do that.
|
||||
|
||||
### To see kernel symbols and their values
|
||||
|
||||
```
|
||||
just nm
|
||||
```
|
||||
|
||||
### To see kernel disassembly
|
||||
|
||||
You need to have [Hopper](https://hopperapp.com) and hopperv4 cli helper installed.
|
||||
|
|
|
@ -78,6 +78,13 @@ script = [
|
|||
"rust-gdb -x ${GDB_CONNECT_FILE} ${KERNEL_ELF}"
|
||||
]
|
||||
|
||||
[tasks.nm]
|
||||
dependencies = ["build", "kernel-binary"]
|
||||
script = [
|
||||
"${NM} -- ${KERNEL_ELF} | sort"
|
||||
]
|
||||
#install_crate = "cargo-binutils"
|
||||
|
||||
[tasks.sdcard]
|
||||
dependencies = ["build", "kernel-binary"]
|
||||
script_runner = "@duckscript"
|
||||
|
|
Loading…
Reference in New Issue