Skip to content

Commit e5a8719

Browse files
committed
Rename current -> object_id
1 parent a248330 commit e5a8719

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

humility-core/src/hubris.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3635,7 +3635,7 @@ impl HubrisArchive {
36353635
/// meant to be used for parallel loading, after which point everything is
36363636
/// merged using `HubrisArchive::merge`.
36373637
struct HubrisObjectLoader {
3638-
current: u32,
3638+
object_id: u32,
36393639

36403640
// image ID
36413641
imageid: Option<(u32, Vec<u8>)>,
@@ -3727,9 +3727,9 @@ struct HubrisObjectLoader {
37273727
}
37283728

37293729
impl HubrisObjectLoader {
3730-
fn new(current: u32) -> Result<Self> {
3730+
fn new(object_id: u32) -> Result<Self> {
37313731
Ok(Self {
3732-
current,
3732+
object_id,
37333733
imageid: None,
37343734
arrays: HashMap::new(),
37353735
variables: MultiMap::new(),
@@ -3881,7 +3881,7 @@ impl HubrisObjectLoader {
38813881
let offset = textsec.sh_offset as u32;
38823882
let textsize = textsec.sh_size as u32;
38833883

3884-
log::trace!("loading {} as object {}", object, self.current);
3884+
log::trace!("loading {} as object {}", object, self.object_id);
38853885

38863886
for sym in elf.syms.iter() {
38873887
if sym.st_name == 0 {
@@ -4045,7 +4045,7 @@ impl HubrisObjectLoader {
40454045
textsec.sh_addr as u32,
40464046
HubrisModule {
40474047
name: String::from(object),
4048-
object: self.current,
4048+
object: self.object_id,
40494049
textbase: (textsec.sh_addr as u32),
40504050
textsize,
40514051
memsize: memsz as u32,
@@ -4517,7 +4517,7 @@ impl HubrisObjectLoader {
45174517
entry: &gimli::DebuggingInformationEntry<R, usize>,
45184518
) -> HubrisGoff {
45194519
let goff = entry.offset().to_unit_section_offset(unit).0;
4520-
HubrisGoff { object: self.current, goff }
4520+
HubrisGoff { object: self.object_id, goff }
45214521
}
45224522

45234523
fn dwarf_union<R: gimli::Reader<Offset = usize>>(
@@ -4679,7 +4679,7 @@ impl HubrisObjectLoader {
46794679
}
46804680
};
46814681

4682-
Some(HubrisGoff { object: self.current, goff })
4682+
Some(HubrisGoff { object: self.object_id, goff })
46834683
}
46844684

46854685
fn dwarf_variant<R: gimli::Reader<Offset = usize>>(

0 commit comments

Comments
 (0)