Add nm helper target
This commit is contained in:
parent
6da44a69ac
commit
79028dba96
3
Justfile
3
Justfile
|
@ -30,3 +30,6 @@ openocd:
|
||||||
|
|
||||||
gdb:
|
gdb:
|
||||||
cargo make gdb
|
cargo make gdb
|
||||||
|
|
||||||
|
nm:
|
||||||
|
cargo make nm
|
||||||
|
|
|
@ -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.
|
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
|
### To see kernel disassembly
|
||||||
|
|
||||||
You need to have [Hopper](https://hopperapp.com) and hopperv4 cli helper installed.
|
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}"
|
"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]
|
[tasks.sdcard]
|
||||||
dependencies = ["build", "kernel-binary"]
|
dependencies = ["build", "kernel-binary"]
|
||||||
script_runner = "@duckscript"
|
script_runner = "@duckscript"
|
||||||
|
|
Loading…
Reference in New Issue