aboutsummaryrefslogtreecommitdiff
path: root/gdb/dbxread.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-08-23 11:09:34 +0930
committerAndrew Burgess <aburgess@redhat.com>2023-08-23 14:56:24 +0100
commitcdb090c88b4ebf6f728a000d1ee73d9bdee9ebb3 (patch)
tree5cf977fb80b899a3f67df29c2f90b4d5247994ea /gdb/dbxread.c
parentd367563d55c0ff2bd406397c773bca767e8fccce (diff)
downloadgdb-cdb090c88b4ebf6f728a000d1ee73d9bdee9ebb3.zip
gdb-cdb090c88b4ebf6f728a000d1ee73d9bdee9ebb3.tar.gz
gdb-cdb090c88b4ebf6f728a000d1ee73d9bdee9ebb3.tar.bz2
gdb: fix up a few places where a char was treated as a bool
Spotted a few places where a char is being treated as a bool. The GDB style is to use explicit comparisons, so fix things up. There should be no user visible changes after this commit.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r--gdb/dbxread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 4c585ef..958b6db 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -486,7 +486,7 @@ record_minimal_symbol (minimal_symbol_reader &reader,
{
const char *tempstring = name;
- if (*tempstring
+ if (*tempstring != '\0'
&& *tempstring == bfd_get_symbol_leading_char (objfile->obfd.get ()))
++tempstring;
if (is_vtable_name (tempstring))
@@ -2255,7 +2255,7 @@ read_ofile_symtab (struct objfile *objfile, legacy_psymtab *pst)
processing_gcc_compilation = 1;
else if (strcmp (namestring, GCC2_COMPILED_FLAG_SYMBOL) == 0)
processing_gcc_compilation = 2;
- if (*tempstring
+ if (*tempstring != '\0'
&& *tempstring == bfd_get_symbol_leading_char (symfile_bfd))
++tempstring;
if (startswith (tempstring, "__gnu_compiled"))