diff options
Diffstat (limited to 'gdb/contrib/dwarf-to-dwarf-assembler.py')
| -rwxr-xr-x | gdb/contrib/dwarf-to-dwarf-assembler.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/contrib/dwarf-to-dwarf-assembler.py b/gdb/contrib/dwarf-to-dwarf-assembler.py index cf00be0..58fb6cb 100755 --- a/gdb/contrib/dwarf-to-dwarf-assembler.py +++ b/gdb/contrib/dwarf-to-dwarf-assembler.py @@ -196,7 +196,11 @@ class DWARFAttribute: applicable. """ s = lbrace - s += self.name + " " + if isinstance(self.name, int): + s += "DW_AT_" + hex(self.name) + else: + s += self.name + s += " " s += self._format_value(offset_die_lookup) # Only explicitly state form if it's not a reference. |
