forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user