This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob] Eliminate more STREQ
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 23 Nov 2003 14:22:12 -0500
- Subject: [ob] Eliminate more STREQ
committed,
Andrew
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.
Index: elfread.c
===================================================================
RCS file: /cvs/src/src/gdb/elfread.c,v
retrieving revision 1.39
diff -u -r1.39 elfread.c
--- elfread.c 11 Nov 2003 20:04:52 -0000 1.39
+++ elfread.c 23 Nov 2003 19:10:39 -0000
@@ -342,10 +342,7 @@
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: symfile.c
===================================================================
RCS file: /cvs/src/src/gdb/symfile.c,v
retrieving revision 1.113
diff -u -r1.113 symfile.c
--- symfile.c 15 Nov 2003 19:39:04 -0000 1.113
+++ symfile.c 23 Nov 2003 19:11:08 -0000
@@ -1226,7 +1226,7 @@
if (strcmp (*argv, "-mapped") == 0)
flags |= OBJF_MAPPED;
else
- if (STREQ (*argv, "-readnow"))
+ if (strcmp (*argv, "-readnow") == 0)
flags |= OBJF_READNOW;
else
if (**argv == '-')