forked from Imagelibrary/binutils-gdb
gdb producer_is_gcc fix bool return value.
gdb/ChangeLog: * utils.c (producer_is_gcc): Return true or false.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user