]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb] Fix producer_is_gas comment
authorTom de Vries <tdevries@suse.de>
Mon, 17 Nov 2025 16:33:03 +0000 (17:33 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 17 Nov 2025 16:33:03 +0000 (17:33 +0100)
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>
gdb/producer.h

index 40a19724dfaacf03f95c8eda6b89cd673789e758..5ae90350caabad30890999b496a99fe14754f558 100644 (file)
@@ -30,8 +30,8 @@ extern int producer_is_gcc_ge_4 (const char *producer);
    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);