You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
traitRegisters{fnip(&self) -> u64;fnset_ip(&mutself,ip:u64);fnsp(&self) -> u64;fnset_sp(&mutself,sp:u64);fnbp(&self) -> Option<u64>;// None if the standard abi on the platform has no base pointer#[must_use]fnset_bp(&mutself,bp:u64) -> Option<()>;// None if the standard abi on the platform has no base pointerfnreg_for_dwarf(&self,reg: gimli::Register) -> Option<u64>;// None when register doesn't exist#[must_use]fnset_reg_for_dwarf(&mutself,reg: gimli::Register,val:u64) -> Option<()>;// None when register doesn't existfnname_for_dwarf(reg: gimli::Register) -> Option<&'static str>;// None when register doesn't existfndwarf_for_name(name:&str) -> Option<gimli::Register>;// None when register doesn't exist}
I am not quite sure how to handle different reg sizes on different architectures and within a single architecture though.
The text was updated successfully, but these errors were encountered:
Probably we can represent the different register sizes using an Enum with a u64, u32, ... variants and with a bunch of helper methods and TryInto impls it should be easy to get the raw values out of the Enum.
Something like
I am not quite sure how to handle different reg sizes on different architectures and within a single architecture though.
The text was updated successfully, but these errors were encountered: