The comment for producer_is_gas in gdb/producer.h:
...
/* Returns nonzero if the given PRODUCER string is GAS and sets the MAJOR
and MINOR versions when not NULL. Returns zero if the given PRODUCER
is NULL or it isn't GAS. */
bool producer_is_gas (const char *producer, int *major, int *minor);
...
uses 'nonzero' and 'zero', while the return type is bool.
Fix this by using 'true' and 'false' instead.
Tested on x86_64-linux.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
is NULL or it isn't GCC. */
extern bool producer_is_gcc (const char *producer, int *major, int *minor);
-/* Returns nonzero if the given PRODUCER string is GAS and sets the MAJOR
- and MINOR versions when not NULL. Returns zero if the given PRODUCER
+/* Return true if the given PRODUCER string is GAS and sets the MAJOR
+ and MINOR versions when not NULL. Returns false if the given PRODUCER
is NULL or it isn't GAS. */
bool producer_is_gas (const char *producer, int *major, int *minor);