* generic/gdbtk.c (target_is_native): Replace STREQ by strcmp.
* generic/gdbtk-cmds.c (gdb_stop): Replace STREQ by strcmp.
(gdb_search): Replace STREQN by strncmp and DEPRECATED_SYMBOL_NAME
by SYMBOL_LINKAGE_NAME.
* generic/gdbtk-varobj.c (variable_format): Replace STREQN by
strncmp.
+2003-11-24 David Carlton <carlton@kealia.com>
+
+ * generic/gdbtk.c (target_is_native): Replace STREQ by strcmp.
+ * generic/gdbtk-cmds.c (gdb_stop): Replace STREQ by strcmp.
+ (gdb_search): Replace STREQN by strncmp and DEPRECATED_SYMBOL_NAME
+ by SYMBOL_LINKAGE_NAME.
+ * generic/gdbtk-varobj.c (variable_format): Replace STREQN by
+ strncmp.
+
2003-11-11 David Carlton <carlton@kealia.com>
* generic/gdbtk-bp.c (gdb_find_bp_at_addr): Replace use of
if (objc > 1)
{
s = Tcl_GetStringFromObj (objv[1], NULL);
- if (STREQ (s, "detach"))
+ if (strcmp (s, "detach") == 0)
force = 1;
}
/* Strip off some C++ special symbols, like RTTI and global
constructors/destructors. */
- if ((p->symbol != NULL && !STREQN (DEPRECATED_SYMBOL_NAME (p->symbol), "__tf", 4)
- && !STREQN (DEPRECATED_SYMBOL_NAME (p->symbol), "_GLOBAL_", 8))
+ if ((p->symbol != NULL
+ && strncmp (SYMBOL_LINKAGE_NAME (p->symbol), "__tf", 4) != 0
+ && strncmp (SYMBOL_LINKAGE_NAME (p->symbol), "_GLOBAL_", 8) != 0)
|| p->msymbol != NULL)
{
elem = Tcl_NewListObj (0, NULL);
/* Set the format of VAR to given format */
int len;
char *fmt = Tcl_GetStringFromObj (objv[2], &len);
- if (STREQN (fmt, "natural", len))
+ if (strncmp (fmt, "natural", len) == 0)
varobj_set_display_format (var, FORMAT_NATURAL);
- else if (STREQN (fmt, "binary", len))
+ else if (strncmp (fmt, "binary", len) == 0)
varobj_set_display_format (var, FORMAT_BINARY);
- else if (STREQN (fmt, "decimal", len))
+ else if (strncmp (fmt, "decimal", len) == 0)
varobj_set_display_format (var, FORMAT_DECIMAL);
- else if (STREQN (fmt, "hexadecimal", len))
+ else if (strncmp (fmt, "hexadecimal", len) == 0)
varobj_set_display_format (var, FORMAT_HEXADECIMAL);
- else if (STREQN (fmt, "octal", len))
+ else if (strncmp (fmt, "octal", len) == 0)
varobj_set_display_format (var, FORMAT_OCTAL);
else
{
{
char *name = t->to_shortname;
- if (STREQ (name, "exec") || STREQ (name, "hpux-threads")
- || STREQ (name, "child") || STREQ (name, "procfs")
- || STREQ (name, "solaris-threads") || STREQ (name, "linuxthreads")
- || STREQ (name, "multi-thread"))
+ if (strcmp (name, "exec") == 0 || strcmp (name, "hpux-threads") == 0
+ || strcmp (name, "child") == 0 || strcmp (name, "procfs") == 0
+ || strcmp (name, "solaris-threads") == 0
+ || strcmp (name, "linuxthreads") == 0
+ || strcmp (name, "multi-thread") == 0)
return 1;
return 0;