kmeisthax / retrogram

Binary program analysis toolkit
7 stars 1 forks source link

Add trait for platforms and remove the `file` requirement from `with_architecture!`. #2

Closed kmeisthax closed 3 years ago

kmeisthax commented 3 years ago

Platform constructors should have a trait Platform which allows handing the constructor a filesystem and getting a memory bus out of it. This should be roughly equivalent to the existing construct_platform methods, but with the ability to hand more than one file to the constructor.

with_architecture! can then lose the file parameter, as not all architecture-specific code needs to have a working memory bus.