diff options
author | Mark Wielaard <mjw@redhat.com> | 2015-02-04 18:14:33 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2015-02-10 21:20:38 +0100 |
commit | b1ffba5a7fe1eb1fb97f3e81dd5cc78b59eb1fea (patch) | |
tree | 8e4b94d03e580b3dca27cc1408540eab86e7ed4f /gdb/dwarf2read.c | |
parent | 01b088bc51fe37e07905d36547f4ea43904837c0 (diff) | |
download | gdb-b1ffba5a7fe1eb1fb97f3e81dd5cc78b59eb1fea.zip gdb-b1ffba5a7fe1eb1fb97f3e81dd5cc78b59eb1fea.tar.gz gdb-b1ffba5a7fe1eb1fb97f3e81dd5cc78b59eb1fea.tar.bz2 |
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.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |