diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-11-08 00:13:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-11-08 00:13:03 +0000 |
commit | 6314a3493442b8fa5942312c2a3b0264024f7b78 (patch) | |
tree | dc4b2dfc3f466c6cc25a54e6c7e56b5245557bfe /gdb/elfread.c | |
parent | fe62ef869f50fff3b897398da56716c3236e24eb (diff) | |
download | gdb-6314a3493442b8fa5942312c2a3b0264024f7b78.zip gdb-6314a3493442b8fa5942312c2a3b0264024f7b78.tar.gz gdb-6314a3493442b8fa5942312c2a3b0264024f7b78.tar.bz2 |
2003-11-07 Andrew Cagney <cagney@redhat.com>
* top.c (print_gdb_version): Replace STREQ with strcmp.
* valops.c (value_struct_elt_for_reference): Ditto.
(value_struct_elt_for_reference): Ditto.
* symtab.c (gdb_mangle_name): Ditto.
(find_line_symtab): Ditto.
* symmisc.c (maintenance_print_symbols): Ditto.
* symfile.c (symbol_file_command): Ditto.
* stabsread.c (define_symbol, read_type): Ditto.
(cleanup_undefined_types, scan_file_globals): Ditto.
* solib.c (solib_map_sections): Ditto.
* solib-svr4.c (bfd_lookup_symbol): Ditto.
* rs6000-tdep.c (skip_prologue): Ditto.
* p-valprint.c (pascal_value_print): Ditto.
(pascal_object_is_vtbl_ptr_type): Ditto.
* objfiles.c (in_plt_section): Ditto.
* minsyms.c (lookup_minimal_symbol): Ditto.
(compact_minimal_symbols): Ditto.
(find_solib_trampoline_target): Ditto.
* mdebugread.c (parse_type): Ditto.
* language.c (set_language_command): Ditto.
(set_type_command, set_range_command): Ditto.
* f-lang.c (add_common_block): Ditto.
(add_common_block): Ditto.
(find_first_common_named): Ditto.
(patch_all_commons_by_name): Ditto.
* elfread.c (elf_locate_sections): Ditto.
(elf_locate_sections): Ditto.
(elfstab_offset_sections): Ditto.
* dwarf2read.c (dwarf2_locate_sections): Ditto.
* dbxread.c (add_old_header_file): Ditto.
(find_corresponding_bincl_psymtab): Ditto.
(read_dbx_symtab, process_one_symbol): Ditto.
* coffread.c (patch_opaque_types): Ditto.
* cli/cli-decode.c (delete_cmd): Ditto.
* cli/cli-cmds.c (pwd_command, list_command): Ditto.
* c-typeprint.c (c_type_print_base): Ditto.
* breakpoint.c (bpstat_stop_status): Ditto.
(clear_command, breakpoint_re_set_one): Ditto.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r-- | gdb/elfread.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index 75384a5..8814f89 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -80,25 +80,25 @@ elf_locate_sections (bfd *ignore_abfd, asection *sectp, void *eip) struct elfinfo *ei; ei = (struct elfinfo *) eip; - if (STREQ (sectp->name, ".debug")) + if (strcmp (sectp->name, ".debug") == 0) { ei->dboffset = sectp->filepos; ei->dbsize = bfd_get_section_size_before_reloc (sectp); } - else if (STREQ (sectp->name, ".line")) + else if (strcmp (sectp->name, ".line") == 0) { ei->lnoffset = sectp->filepos; ei->lnsize = bfd_get_section_size_before_reloc (sectp); } - else if (STREQ (sectp->name, ".stab")) + else if (strcmp (sectp->name, ".stab") == 0) { ei->stabsect = sectp; } - else if (STREQ (sectp->name, ".stab.index")) + else if (strcmp (sectp->name, ".stab.index") == 0) { ei->stabindexsect = sectp; } - else if (STREQ (sectp->name, ".mdebug")) + else if (strcmp (sectp->name, ".mdebug") == 0) { ei->mdebugsect = sectp; } @@ -690,7 +690,7 @@ elfstab_offset_sections (struct objfile *objfile, struct partial_symtab *pst) for (; maybe; maybe = maybe->next) { if (filename[0] == maybe->filename[0] - && STREQ (filename, maybe->filename)) + && strcmp (filename, maybe->filename) == 0) { /* We found a match. But there might be several source files (from different directories) with the same name. */ |