Closed bjoernQ closed 7 months ago
Does it print the raw address and the decoded part (with the address again) separately? Could we do so that it either only prints a raw line or the decoded line? You see that at the bottom output like here
0x420005ca
0x420005ca - <bool as core::fmt::Debug>::fmt
at C:\Users\Bjoern\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\fmt\mod.rs:2325
0x420033e6
0x420033e6 - FROM_CPU_INTR0
at C:\projects\esp\esp-hal\esp-hal\src\embassy\executor\thread.rs:21
0x42000104
0x42000104 - _start_rust
at ??:??
It just increase the noise for no good reason i think?
Does it print the raw address and the decoded part (with the address again) separately? Could we do so that it either only prints a raw line or the decoded line? You see that at the bottom output like here
0x420005ca 0x420005ca - <bool as core::fmt::Debug>::fmt at C:\Users\Bjoern\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\fmt\mod.rs:2325 0x420033e6 0x420033e6 - FROM_CPU_INTR0 at C:\projects\esp\esp-hal\esp-hal\src\embassy\executor\thread.rs:21 0x42000104 0x42000104 - _start_rust at ??:??
It just increase the noise for no good reason i think?
mhhhh in that example you are right - looks like noise - actually the un-decoded line is the output from the target
Here it's actually needed
PC=0x420001ba RA/x1=0x420001b2 SP/x2=0x3fc81778 GP/x3=0x3fccfee0 TP/x4=0x00000000
0x420001ba - embassy_hello_world::__run_task::{{closure}}
at C:\projects\esp\esp-hal\esp32c3-hal\examples\embassy_hello_world.rs:19
0x420001b2 - embassy_hello_world::__run_task::{{closure}}
at C:\projects\esp\esp-hal\esp32c3-hal\examples\embassy_hello_world.rs:19
I could try to suppress repeating the address if the line just contains the address and nothing else
It now looks like this
Much cleaner IMHO
This turns this
into this