Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronize segment register names for i386 and amd64 #211

Open
Kyle-Kyle opened this issue Apr 16, 2024 · 1 comment
Open

Synchronize segment register names for i386 and amd64 #211

Kyle-Kyle opened this issue Apr 16, 2024 · 1 comment

Comments

@Kyle-Kyle
Copy link

Description

segment registers have different name for i386, amd64 in archinfo, which is quite annoying
specifically, in archinfo, i386 calls them normally like "cs", "ds", "es", "fs", "gs", "ss", but amd64 calls them "cs_seg", "ds_seg", which is annoying when developing something relevant to those registers.

i386: https://github.com/angr/archinfo/blob/master/archinfo/arch_x86.py#L56
amd64: https://github.com/angr/archinfo/blob/master/archinfo/arch_amd64.py#L442

Alternatives

No response

Additional context

No response

@Kyle-Kyle
Copy link
Author

context: I'm developing a segment register filter for angrop: https://github.com/angr/angrop/blob/154310eccc153b44e868b8e454b3043207ea8525/angrop/arch.py#L60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant