fuzzware-fuzzer / fuzzware-emulator

Fuzzware's emulation component. Belongs to fuzzware main repo.
Apache License 2.0
4 stars 15 forks source link

Log pc and lr while emulating + guess lr symbol #9

Closed fabian-thomas closed 11 months ago

fabian-thomas commented 11 months ago

This adds more info to the output of -t, that is, logging the pc (the address of the function) and the lr. This makes debugging easier.

Also, a function is added that tries to guess the symbol of lr. We need to guess, since symbols only point to the beginning of the function. Guessing is thereby done, by just taking the first symbol that has a lower address than lr.

Scepticz commented 11 months ago

Hi Fabian,

Thank you for all the pull requests. I will take some time here, as I am a bit busy at the moment.

Tobi

Scepticz commented 11 months ago

Is the helper doing the same as closest_symbol?

Then we should use that to avoid code duplication

fabian-thomas commented 11 months ago

Yes, absolutely. Should have checked... I'm gonna quickly fix this

Scepticz commented 11 months ago

Great. Thank you. Looks good to me. :-)