From b1ffba5a7fe1eb1fb97f3e81dd5cc78b59eb1fea Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 4 Feb 2015 18:14:33 +0100 Subject: Change producer_is_gcc function return type to bool. gdb/ChangeLog: * utils.h (producer_is_gcc): Change return type to bool. Add major argument. * utils.c (producer_is_gcc): Likewise. (producer_is_gcc_ge_4): Adjust producer_is_gcc call. * dwarf2read.c (check_producer): Likewise. --- gdb/dwarf2read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/dwarf2read.c') diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index db35e7e..a764389 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -12293,7 +12293,7 @@ check_producer (struct dwarf2_cu *cu) combination. gcc-4.5.x -gdwarf-4 binaries have DW_AT_accessibility interpreted incorrectly by GDB now - GCC PR debug/48229. */ } - else if ((major = producer_is_gcc (cu->producer, &minor)) > 0) + else if (producer_is_gcc (cu->producer, &major, &minor)) { cu->producer_is_gxx_lt_4_6 = major < 4 || (major == 4 && minor < 6); cu->producer_is_gcc_lt_4_3 = major < 4 || (major == 4 && minor < 3); -- cgit v1.1