]> git.lizzy.rs Git - rust.git/commitdiff
Misc debuginfo change
authorbjorn3 <bjorn3@users.noreply.github.com>
Sat, 26 Jan 2019 13:06:02 +0000 (14:06 +0100)
committerbjorn3 <bjorn3@users.noreply.github.com>
Sat, 26 Jan 2019 13:06:02 +0000 (14:06 +0100)
src/debuginfo.rs

index 7dd9a47bd05fe41cbb5960e759e901ff93fcb4fe..f7ebaefff8e2303430bbd0ef5e087679fc807ddb 100644 (file)
@@ -316,9 +316,8 @@ pub fn define(
         source_info_set: &indexmap::IndexSet<SourceInfo>,
     ) {
         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 {