FireDBG.for.Rust icon indicating copy to clipboard operation
FireDBG.for.Rust copied to clipboard

Mapping vtable addresses to Rust type

Open tyt2y3 opened this issue 2 years ago • 0 comments

Would love to have some ideas on the best way to map vtable addresses back to the original Rust types.

Say we have a Box<dyn MyTrait>, the goal is to lookup the original type info from the vtable address, and then use the type info to decode the data at the data address.

We can already do this for normal boxed types, because we trace allocations. Since there is no allocation for Zero Sized Types, this trick does not work.

Originally posted by @tyt2y3 in https://github.com/SeaQL/FireDBG.for.Rust/discussions/34

tyt2y3 avatar Jan 08 '24 20:01 tyt2y3