Skip to content

Commit

Permalink
fix(debugger): fix fluky ordering in sharedlib info command
Browse files Browse the repository at this point in the history
  • Loading branch information
godzie44 committed Oct 20, 2024
1 parent 7610346 commit ff40ade
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/debugger/debugee/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ impl DwarfRegistry {
}
}

/// Return a ordered list of mapped regions (main executable region at first place).
/// Return an ordered list of mapped regions (main executable region at first place).
pub fn dump(&self) -> Vec<RegionInfo> {
let mut regions: Vec<_> = self
.files
Expand All @@ -296,6 +296,9 @@ impl DwarfRegistry {
if i1.path == self.program_path {
return Ordering::Less;
};
if i2.path == self.program_path {
return Ordering::Greater;
}
i1.path.cmp(&i2.path)
});
regions
Expand Down

0 comments on commit ff40ade

Please sign in to comment.