summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/dwarf2/cooked-index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/cooked-index.c b/gdb/dwarf2/cooked-index.c
index 9dbb844cade..82dc44dd74b 100644
--- a/gdb/dwarf2/cooked-index.c
+++ b/gdb/dwarf2/cooked-index.c
@@ -489,7 +489,7 @@ cooked_index_vector::dump (gdbarch *arch) const
gdb_printf (" canonical: %s\n", entry->canonical);
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%lx\n",
+ gdb_printf (" DIE offset: 0x%" PRIx64 "\n",
to_underlying (entry->die_offset));
if (entry->parent_entry != nullptr)