-
Notifications
You must be signed in to change notification settings - Fork 13
Description
I left some thoughts about this in other issues, but we don't have one on file for this specifically. We're going to want to have support for multiple architectures, so we will need a plan for how to make this straightforward for consumers. My initial idea was to have some sort of Architecture
trait that would provide all the necessary details, and then this crate could have built-in types for a few of the most popular architectures (x86, x86-64, arm, aarch64 at least). I was originally thinking we'd have a method like Handler::get_architecture
that'd return a type implementing Architecture
, but we could also make this an associated type on Handler
, which would mean we could do a lot of things statically, like knowing the registers etc, but it might make life complicated for users who legitimately want to support multiple architectures (like my proposed minidump use case).