uxmal / reko

Reko is a binary decompiler.
https://uxmal.github.io/reko
GNU General Public License v2.0
2.1k stars 251 forks source link

Improve logging in TrashedRegisterFinder.ProcessBlock #1284

Closed throwaway96 closed 11 months ago

throwaway96 commented 11 months ago

Previously, nothing would appear in the event log for certain errors that occurred in TrashedRegisterFinder.ProcessBlock(). Now, for any exception that is not handled elsewhere, a reference to the statement that caused the exception will be added to the log, and the containing block will be dumped.

Code by @uxmal.

uxmal commented 11 months ago

Thanks for the PR. I will probably make this a general tool for usage in the other transformations in the analysis stage. It will help with debugging.