Skip to content

Figure out a plan for architecture support #46

@luser

Description

@luser

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions