diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-11-23 19:24:05 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-11-23 19:24:05 +0000 |
commit | 66c5728963bf98343883dc40b3988bf41b702f4c (patch) | |
tree | 51cf39c6d4632737119c46d408923dd779400328 | |
parent | 4d9eda44f593f5a8d1cd59f76f127d31290a26d4 (diff) | |
download | fsf-binutils-gdb-66c5728963bf98343883dc40b3988bf41b702f4c.zip fsf-binutils-gdb-66c5728963bf98343883dc40b3988bf41b702f4c.tar.gz fsf-binutils-gdb-66c5728963bf98343883dc40b3988bf41b702f4c.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/elfread.c | 5 | ||||
-rw-r--r-- | gdb/symfile.c | 2 |
3 files changed, 8 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 05a6b35..b82d20a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/elfread.c b/gdb/elfread.c index d899c09..d3779c0 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -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); diff --git a/gdb/symfile.c b/gdb/symfile.c index d85ec19..e940003 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -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 == '-') |