2003-11-23 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sun, 23 Nov 2003 19:24:05 +0000 (19:24 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 23 Nov 2003 19:24:05 +0000 (19:24 +0000)
* symfile.c (symbol_file_command): Replace STREQ with strcmp.
* elfread.c (elf_symtab_read): Delete STREQ from comment.

gdb/ChangeLog
gdb/elfread.c
gdb/symfile.c

index 05a6b3585aee0f81a474188db5b11e67a01db560..b82d20a01a44ebcd558e8eef0b63955c5410b261 100644 (file)
@@ -1,3 +1,9 @@
+2003-11-23  Andrew Cagney  <cagney@redhat.com>
+
+       * symfile.c (symbol_file_command): Replace STREQ with strcmp.
+
+       * elfread.c (elf_symtab_read): Delete STREQ from comment.
+
 2003-11-22  Andrew Cagney  <cagney@redhat.com>
 
        * frame.c (deprecated_frame_xmalloc): Delete function.
index d899c09a75756c14abe68901abc61d6a6da46dff..d3779c07ec3577bafc1cb89574a3dc7fe243c205 100644 (file)
@@ -342,10 +342,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
                  else if (sym->flags & BSF_LOCAL)
                    {
                      /* Named Local variable in a Data section.
-                        Check its name for stabs-in-elf.  The STREQ
-                        macro checks the first character inline, so
-                        we only actually do a strcmp function call on
-                        names that start with 'B' or 'D'.  */
+                        Check its name for stabs-in-elf.  */
                      int special_local_sect;
                      if (strcmp ("Bbss.bss", sym->name) == 0)
                        special_local_sect = SECT_OFF_BSS (objfile);
index d85ec19128eb936729df5f227a54a0b2944e33dd..e94000321a6559de563a9d38588cc336be76a9b6 100644 (file)
@@ -1226,7 +1226,7 @@ symbol_file_command (char *args, int from_tty)
          if (strcmp (*argv, "-mapped") == 0)
            flags |= OBJF_MAPPED;
          else 
-           if (STREQ (*argv, "-readnow"))
+           if (strcmp (*argv, "-readnow") == 0)
              flags |= OBJF_READNOW;
            else 
              if (**argv == '-')