aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2025-02-06 09:45:15 -0700
committerTom Tromey <tromey@adacore.com>2025-03-18 12:40:58 -0600
commita83688465fec197f682e88c223d41468fac12efa (patch)
tree1d05982988befc5e18e99dee77d471915545ee71 /gdb
parente0a55ad42257771a6bed89130d45d0a24d417759 (diff)
downloadbinutils-a83688465fec197f682e88c223d41468fac12efa.zip
binutils-a83688465fec197f682e88c223d41468fac12efa.tar.gz
binutils-a83688465fec197f682e88c223d41468fac12efa.tar.bz2
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 <simon.marchi@efficios.com>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/dwarf2/read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 30205f2..ab68320 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