From: Mark Wielaard Date: Tue, 10 Feb 2015 23:45:31 +0000 (+0100) Subject: gdb producer_is_gcc fix bool return value. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f615e3af0356052a475812cb5a4380a5fe51182;p=binutils-gdb.git gdb producer_is_gcc fix bool return value. gdb/ChangeLog: * utils.c (producer_is_gcc): Return true or false. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a23c2d880c5..fe61d24244b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-02-11 Mark Wielaard + + * utils.c (producer_is_gcc): Return true or false. + 2015-02-04 Mark Wielaard * utils.h (producer_is_gcc): Change return type to bool. Add major diff --git a/gdb/utils.c b/gdb/utils.c index 2b5473947ce..3ce5814904b 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -3299,11 +3299,11 @@ producer_is_gcc (const char *producer, int *major, int *minor) if (*cs && isspace (*cs)) cs++; if (sscanf (cs, "%d.%d", major, minor) == 2) - return major; + return true; } /* Not recognized as GCC. */ - return -1; + return false; } /* Helper for make_cleanup_free_char_ptr_vec. */