From 4fbff29a4a0bbd8362958d20e4ca8fba185330cb Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 26 Jan 2019 14:06:02 +0100 Subject: [PATCH] Misc debuginfo change --- src/debuginfo.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/debuginfo.rs b/src/debuginfo.rs index 7dd9a47bd05..f7ebaefff8e 100644 --- a/src/debuginfo.rs +++ b/src/debuginfo.rs @@ -316,9 +316,8 @@ impl<'a, 'b, 'tcx: 'b> FunctionDebugContext<'a, 'tcx> { source_info_set: &indexmap::IndexSet, ) { let unit = self.debug_context.units.get_mut(self.debug_context.unit_id); - // FIXME: add to appropriate scope intead of root let entry = unit.get_mut(self.entry_id); - entry.set(gimli::DW_AT_high_pc, AttributeValue::Data8(code_size as u64)); + entry.set(gimli::DW_AT_high_pc, AttributeValue::Udata(code_size as u64)); self.debug_context.unit_range_list.0.push(Range { begin: Address::Relative {