]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix formatting of attributes in dwarf-to-dwarf-assembler output
authorTom Tromey <tromey@adacore.com>
Wed, 22 Oct 2025 13:33:35 +0000 (07:33 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 28 Oct 2025 15:38:46 +0000 (09:38 -0600)
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>
gdb/contrib/dwarf-to-dwarf-assembler.py

index 58fb6cbe549499eb6dc109206cbfdf9b171c6ec3..8813de5041abbfd12475effe51ec3e0b7aa4dfa6 100755 (executable)
@@ -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)