forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -297,7 +297,7 @@ pwd_command (char *args, int from_tty)
|
||||
error ("The \"pwd\" command does not take an argument: %s", args);
|
||||
getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
|
||||
|
||||
if (!STREQ (gdb_dirbuf, current_directory))
|
||||
if (strcmp (gdb_dirbuf, current_directory) != 0)
|
||||
printf_unfiltered ("Working directory %s\n (canonically %s).\n",
|
||||
current_directory, gdb_dirbuf);
|
||||
else
|
||||
@@ -651,7 +651,7 @@ list_command (char *arg, int from_tty)
|
||||
|
||||
/* "l" or "l +" lists next ten lines. */
|
||||
|
||||
if (arg == 0 || STREQ (arg, "+"))
|
||||
if (arg == 0 || strcmp (arg, "+") == 0)
|
||||
{
|
||||
print_source_lines (cursal.symtab, cursal.line,
|
||||
cursal.line + get_lines_to_list (), 0);
|
||||
@@ -659,7 +659,7 @@ list_command (char *arg, int from_tty)
|
||||
}
|
||||
|
||||
/* "l -" lists previous ten lines, the ones before the ten just listed. */
|
||||
if (STREQ (arg, "-"))
|
||||
if (strcmp (arg, "-") == 0)
|
||||
{
|
||||
print_source_lines (cursal.symtab,
|
||||
max (get_first_line_listed () - get_lines_to_list (), 1),
|
||||
|
||||
@@ -503,7 +503,7 @@ delete_cmd (char *name, struct cmd_list_element **list)
|
||||
struct cmd_list_element *c;
|
||||
struct cmd_list_element *p;
|
||||
|
||||
while (*list && STREQ ((*list)->name, name))
|
||||
while (*list && strcmp ((*list)->name, name) == 0)
|
||||
{
|
||||
if ((*list)->hookee_pre)
|
||||
(*list)->hookee_pre->hook_pre = 0; /* Hook slips out of its mouth */
|
||||
@@ -517,7 +517,7 @@ delete_cmd (char *name, struct cmd_list_element **list)
|
||||
if (*list)
|
||||
for (c = *list; c->next;)
|
||||
{
|
||||
if (STREQ (c->next->name, name))
|
||||
if (strcmp (c->next->name, name) == 0)
|
||||
{
|
||||
if (c->next->hookee_pre)
|
||||
c->next->hookee_pre->hook_pre = 0; /* hooked cmd gets away. */
|
||||
|
||||
Reference in New Issue
Block a user