esp-rs / espflash

Serial flasher utility for Espressif SoCs and modules based on esptool.py
Apache License 2.0
455 stars 110 forks source link

Improve resolving non-code addresses #603

Closed bjoernQ closed 4 months ago

bjoernQ commented 4 months ago

This improves how we resolve non-code addresses.

Before

load:0x40080400,len:4
0x40080400 - _DoubleExceptionVector
    at ??:??
ho 8 tail 4 room 4
load:0x40080404,len:3876
0x40080404 - _DoubleExceptionVector
    at ??:??
entry 0x4008064c
0x4008064c - __user_exception
    at C:\Users\Bjoern\.cargo\registry\src\index.crates.io-6f17d22bba15001f\esp-backtrace-0.11.0\src\lib.rs:130

After

load:0x40080400,len:4
ho 8 tail 4 room 4
load:0x40080404,len:3876
entry 0x4008064c
0x4008064c - __user_exception
    at C:\Users\Bjoern\.cargo\registry\src\index.crates.io-6f17d22bba15001f\esp-backtrace-0.11.0\src\lib.rs:130

__user_exception is still confusing but at least it's the same result as xtensa-esp32-elf-addr2line

bjoernQ commented 4 months ago

@SergioGasquez I remember you looked into that openssl build problem before?

SergioGasquez commented 4 months ago

@SergioGasquez I remember you looked into that openssl build problem before?

Yes, feel free to ignore it for the moment. See https://github.com/esp-rs/espflash/pull/602 and https://github.com/esp-rs/espflash/issues/597