aboutsummaryrefslogtreecommitdiff
path: root/gdb/contrib/dwarf-to-dwarf-assembler.py
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2025-10-22 07:33:35 -0600
committerTom Tromey <tromey@adacore.com>2025-10-28 09:38:46 -0600
commitfb55fe0da56b40679e07eea6474720b94e574abb (patch)
treefb6ca4d9761015a9ef31fe1a9f3fcc1ad259a71e /gdb/contrib/dwarf-to-dwarf-assembler.py
parent24bff5216593c0a2216c11f38297c3c750da1af0 (diff)
downloadbinutils-fb55fe0da56b40679e07eea6474720b94e574abb.zip
binutils-fb55fe0da56b40679e07eea6474720b94e574abb.tar.gz
binutils-fb55fe0da56b40679e07eea6474720b94e574abb.tar.bz2
Fix formatting of attributes in dwarf-to-dwarf-assembler output
This updates dwarf-to-dwarf-assembler.py to reflect the changes made to how attributes are parsed; see commit c44edec047d (Make location expressions be code in DWARF assembler). Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/contrib/dwarf-to-dwarf-assembler.py')
-rwxr-xr-xgdb/contrib/dwarf-to-dwarf-assembler.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/contrib/dwarf-to-dwarf-assembler.py b/gdb/contrib/dwarf-to-dwarf-assembler.py
index 58fb6cb..8813de5 100755
--- a/gdb/contrib/dwarf-to-dwarf-assembler.py
+++ b/gdb/contrib/dwarf-to-dwarf-assembler.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# pyright: strict
-# Copyright 2024 Free Software Foundation, Inc.
+# Copyright 2024, 2025 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -195,7 +195,7 @@ class DWARFAttribute:
dwarf_operations dictionary, and replaced with their names where
applicable.
"""
- s = lbrace
+ s = ""
if isinstance(self.name, int):
s += "DW_AT_" + hex(self.name)
else:
@@ -207,7 +207,6 @@ class DWARFAttribute:
if self.form not in [None, "DW_FORM_ref4", "DW_FORM_ref_addr"]:
s += " " + self.form
- s += rbrace
return indent(s, indent_count)