Version 0.2.3

- Fix regression when diffing symbols
  across mismatched section indexes
This commit is contained in:
2022-12-10 20:28:01 -05:00
parent 7219e72acf
commit 613e84ecf2
4 changed files with 21 additions and 14 deletions

View File

@@ -14,7 +14,9 @@ use crate::{
const BYTES_PER_ROW: usize = 16;
fn find_section<'a>(obj: &'a ObjInfo, selected_symbol: &SymbolReference) -> Option<&'a ObjSection> {
obj.sections.get(selected_symbol.section_index)
obj.sections.iter().find(|section| {
section.symbols.iter().any(|symbol| symbol.name == selected_symbol.symbol_name)
})
}
fn data_row_ui(ui: &mut egui::Ui, address: usize, diffs: &[ObjDataDiff], config: &ViewConfig) {