Misc debuginfo change
This commit is contained in:
parent
66f417d24c
commit
4fbff29a4a
1 changed files with 1 additions and 2 deletions
|
@ -316,9 +316,8 @@ impl<'a, 'b, 'tcx: 'b> FunctionDebugContext<'a, 'tcx> {
|
|||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue