From: Tom Tromey Date: Thu, 6 Feb 2025 16:45:15 +0000 (-0700) Subject: Use form name in complaint in dwarf2_record_block_entry_pc X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a83688465fec197f682e88c223d41468fac12efa;p=thirdparty%2Fbinutils-gdb.git Use form name in complaint in dwarf2_record_block_entry_pc 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 --- diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 30205f2e8aa..ab6832056dd 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -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