mirror of
https://github.com/encounter/objdiff.git
synced 2025-12-14 23:56:19 +00:00
Reimplement function data value tooltips, function data value diffing, and data relocation diffing (#166)
* Show data literal values on instruction hover Reimplements #108 * Show reloc diffs in func view when data's content differs Reimplements #153 * Data diff view: Show relocs on hover and in context menu This reimplements #154 Note that colorizing the text depending on the kind of diff has still not been reimplemented yet * Fix up some comments
This commit is contained in:
@@ -525,9 +525,23 @@ pub fn diff_view_ui(
|
||||
let address = i * BYTES_PER_ROW;
|
||||
row.col(|ui| {
|
||||
if column == 0 {
|
||||
data_row_ui(ui, Some(left_obj), address, &left_diffs[i], appearance);
|
||||
data_row_ui(
|
||||
ui,
|
||||
Some(left_obj),
|
||||
address,
|
||||
&left_diffs[i],
|
||||
appearance,
|
||||
column,
|
||||
);
|
||||
} else if column == 1 {
|
||||
data_row_ui(ui, Some(right_obj), address, &right_diffs[i], appearance);
|
||||
data_row_ui(
|
||||
ui,
|
||||
Some(right_obj),
|
||||
address,
|
||||
&right_diffs[i],
|
||||
appearance,
|
||||
column,
|
||||
);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -667,7 +681,7 @@ fn diff_col_ui(
|
||||
let i = row.index();
|
||||
let address = i * BYTES_PER_ROW;
|
||||
row.col(|ui| {
|
||||
data_row_ui(ui, Some(obj), address, &diffs[i], appearance);
|
||||
data_row_ui(ui, Some(obj), address, &diffs[i], appearance, column);
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user