From 3142e908d01c044b15c750b5427c9ea2f8a486e2 Mon Sep 17 00:00:00 2001 From: Ruslan Kabatsayev Date: Thu, 26 Dec 2019 00:09:40 +0300 Subject: [PATCH] Fix printing ULONGEST variables on x86-32 gdb/ChangeLog 2019-12-26 Ruslan Kabatsayev * dwarf2read.c (is_valid_DW_AT_defaulted) (is_valid_DW_AT_calling_convention_for_type) (is_valid_DW_AT_calling_convention_for_subroutine): Fix printing ULONGEST variables on x86-32. --- gdb/ChangeLog | 7 +++++++ gdb/dwarf2read.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index acf9106e844..66a7b9b4b80 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2019-12-26 Ruslan Kabatsayev + + * dwarf2read.c (is_valid_DW_AT_defaulted) + (is_valid_DW_AT_calling_convention_for_type) + (is_valid_DW_AT_calling_convention_for_subroutine): Fix printing + ULONGEST variables on x86-32. + 2019-12-21 George Barrett * solib-svr4.c (svr4_handle_solib_event): Add fallback link diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 685d9962978..2520780611d 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -15487,7 +15487,7 @@ is_valid_DW_AT_defaulted (ULONGEST value) return true; } - complaint (_("unrecognized DW_AT_defaulted value (%lu)"), value); + complaint (_("unrecognized DW_AT_defaulted value (%s)"), pulongest (value)); return false; } @@ -15867,7 +15867,7 @@ is_valid_DW_AT_calling_convention_for_type (ULONGEST value) default: complaint (_("unrecognized DW_AT_calling_convention value " - "(%lu) for a type"), value); + "(%s) for a type"), pulongest (value)); return false; } } @@ -15893,7 +15893,7 @@ is_valid_DW_AT_calling_convention_for_subroutine (ULONGEST value) default: complaint (_("unrecognized DW_AT_calling_convention value " - "(%lu) for a subroutine"), value); + "(%s) for a subroutine"), pulongest (value)); return false; } } -- 2.30.2