aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-08-28 10:35:32 -0600
committerTom Tromey <tromey@adacore.com>2023-08-28 10:37:38 -0600
commitb8a175b415454df6a039ba0b5d2ff13c3c180275 (patch)
treeda7bd5b7ef036d9dc2018cff82e78203f3b12a50 /gdb/dwarf2
parenta6ce491c3d926650407927a338d9678ca983bee4 (diff)
downloadbinutils-b8a175b415454df6a039ba0b5d2ff13c3c180275.zip
binutils-b8a175b415454df6a039ba0b5d2ff13c3c180275.tar.gz
binutils-b8a175b415454df6a039ba0b5d2ff13c3c180275.tar.bz2
Use sect_offset_str in cooked_index::dump
Mark Wielaard pointed out that cooked_index::dump uses PRIx64, and Andreas Schwab pointed out that gdb already has sect_offset_str. This patch applies both these observations.
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r--gdb/dwarf2/cooked-index.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/dwarf2/cooked-index.c b/gdb/dwarf2/cooked-index.c
index 351f001..d653126 100644
--- a/gdb/dwarf2/cooked-index.c
+++ b/gdb/dwarf2/cooked-index.c
@@ -584,8 +584,7 @@ cooked_index::dump (gdbarch *arch) const
gdb_printf (" qualified: %s\n", entry->full_name (&temp_storage, false));
gdb_printf (" DWARF tag: %s\n", dwarf_tag_name (entry->tag));
gdb_printf (" flags: %s\n", to_string (entry->flags).c_str ());
- gdb_printf (" DIE offset: 0x%" PRIx64 "\n",
- to_underlying (entry->die_offset));
+ gdb_printf (" DIE offset: %s\n", sect_offset_str (entry->die_offset));
if (entry->parent_entry != nullptr)
gdb_printf (" parent: ((cooked_index_entry *) %p) [%s]\n",