Fix: Allow stack frame for "unknown function"
@@ -1051,12 +1051,9 @@ impl DebugInfo {
.get_program_counter()
.and_then(|reg| reg.value)
{
- match get_unwind_info(
- &mut unwind_context,
- &self.frame_section,
- previous_frame_pc,
- ) {
- Ok(previous_unwind_info) => {
+ if let Ok(previous_unwind_info) =
+ get_unwind_info(&mut unwind_context, &self.frame_section, previous_frame_pc)
+ {
let previous_unwind_cfa = match previous_unwind_info.cfa() {
gimli::CfaRule::RegisterAndOffset { register, offset } => {
let reg_val = unwind_registers
@@ -1122,12 +1119,6 @@ impl DebugInfo {
stack_frames.push(return_frame);
break;
}
- }
- Err(error) => {
- log::trace!("UNWIND: Stack unwind complete. No available debug info for program counter {}: {}",frame_pc, error);
- stack_frames.push(return_frame);
- break;
- }
};
} else {
log::trace!(
