aboutsummaryrefslogtreecommitdiff
path: root/gdb/contrib/dwarf-to-dwarf-assembler.py
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/contrib/dwarf-to-dwarf-assembler.py')
-rwxr-xr-xgdb/contrib/dwarf-to-dwarf-assembler.py6
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.