Skip to content

Commit 66c7b83

Browse files
committed
hide unwinds by default
1 parent 6c060aa commit 66c7b83

File tree

1 file changed

+7
-1
lines changed
  • objdiff-core/src/arch/ppc

1 file changed

+7
-1
lines changed

objdiff-core/src/arch/ppc/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,18 @@ impl Arch for ArchPpc {
366366
if name.starts_with("except_data_"){
367367
SymbolFlag::Hidden.into()
368368
}
369+
// if the symbol name starts with __unwind and
370+
// TODO: a "show unwinds" modifier is unchecked,
371+
// hide the symbol
372+
else if name.starts_with("__unwind"){
373+
SymbolFlag::Hidden.into()
374+
}
369375
else {
370376
SymbolFlag::none()
371377
}
372378
}
373379
Err(_) => { SymbolFlag::none() }
374-
}
380+
}
375381
}
376382
else if self.extab.as_ref().is_some_and(|extab| extab.contains_key(&(symbol.index().0 - 1))) {
377383
SymbolFlag::HasExtra.into()

0 commit comments

Comments
 (0)