aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2015-02-11 00:45:31 +0100
committerMark Wielaard <mjw@redhat.com>2015-02-11 00:45:39 +0100
commit9f615e3af0356052a475812cb5a4380a5fe51182 (patch)
treecedb6a754c70ec6410dcc6a89441f5612f704165 /gdb/utils.c
parentb1ffba5a7fe1eb1fb97f3e81dd5cc78b59eb1fea (diff)
downloadgdb-9f615e3af0356052a475812cb5a4380a5fe51182.zip
gdb-9f615e3af0356052a475812cb5a4380a5fe51182.tar.gz
gdb-9f615e3af0356052a475812cb5a4380a5fe51182.tar.bz2
gdb producer_is_gcc fix bool return value.
gdb/ChangeLog: * utils.c (producer_is_gcc): Return true or false.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 2b54739..3ce5814 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. */