]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use form name in complaint in dwarf2_record_block_entry_pc
authorTom Tromey <tromey@adacore.com>
Thu, 6 Feb 2025 16:45:15 +0000 (09:45 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 18 Mar 2025 18:40:58 +0000 (12:40 -0600)
This changes dwarf2_record_block_entry_pc to issue a complaint using
the form name rather than a value.  This seems more correct to me.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/dwarf2/read.c

index 30205f2e8aa17c4486d5745bf676e5aaa6edcf9f..ab6832056dd4e7255145a04baccabff7a205841a 100644 (file)
@@ -9967,8 +9967,8 @@ dwarf2_record_block_entry_pc (struct die_info *die, struct block *block,
            {
              /* We could possibly handle signed constants, but this is out
                 of spec, so for now, just complain and ignore it.  */
-             complaint (_("Unhandled constant for DW_AT_entry_pc, value (%s)"),
-                        plongest (attr->as_nonnegative ()));
+             complaint (_("Invalid form for DW_AT_entry_pc: %s"),
+                        dwarf_form_name (attr->form));
            }
        }
       else