Crates.io | playdate-symbolize |
lib.rs | playdate-symbolize |
version | 0.2.0 |
source | src |
created_at | 2024-04-24 07:47:13.743447 |
updated_at | 2024-06-25 19:38:58.646205 |
description | Tools for symbolise addresses from bin (pdex.elf) and Playdate's trace or crashlog. |
homepage | https://github.com/boozook/playdate |
repository | https://github.com/boozook/playdate.git |
max_upload_size | |
id | 1218468 |
size | 159,628 |
Three tools:
pd-addr2line
- takes address, returns symbol with spanpd-symbolize-crashlog
- takes crashlog.txt, returns symbolized crashlogpd-symbolize-trace
- takes trace-dump and symbolizing itAll of them have almost same interface.
The pd-addr2line
can operate with stdin or file.
pd-addr2line --exe pdex.elf -Cfri 0xc0a 0x8053C75 10 0x6000027a 0x080bf518
echo "0x8053c75\n0x80bf518" | pd-addr2line --exe pdex.elf -Cfri
The pd-symbolize-trace
can operate with stdin or file.
Parameter --exe
is optional and usually not needed for traces, but 🤷🏻♂️.
export RUST_LOG="info" # prevent unnecessary logs from appearing in the output
pd-symbolize-trace -Cfri trace-dump.txt # parse file, without elf
pd-symbolize-trace --exe pdex.elf -Cfri trace-dump.txt # with elf
cat trace-dump.txt | pd-symbolize-trace --exe pdex.elf -Cfri # pipe
The pd-symbolize-crashlog
can process crashlog file, currently stdin not supported.
pd-symbolize-crashlog --exe pdex.elf -Cfr /Volumes/PLAYDATE/crashlog.txt
All tools have --help
parameter.