headcrab-rs / headcrab

A modern Rust debugging library 🦀
https://headcrab.rs
Other
888 stars 32 forks source link

Reload debuginfo in repl when necessary #110

Open bjorn3 opened 4 years ago

bjorn3 commented 4 years ago

When the dynamic linker loads a new library, it's debuginfo needs to be loaded. Currently when running a command that uses debuginfo before the dynamic linker has loaded libc will prevent resolving libc symbols.

bjorn3 commented 4 years ago

Comparing the memory maps should work and reloading everything on a change should work. When comparing the memory maps all fields should be included, not just the ones exposed as headcrab::target::MemoryMap, but also the device major/minor number and the inode.