* eval.c (evaluate_struct_tuple): Use strcmp instead of
authorMark Kettenis <kettenis@gnu.org>
Tue, 28 Jun 2005 20:48:14 +0000 (20:48 +0000)
committerMark Kettenis <kettenis@gnu.org>
Tue, 28 Jun 2005 20:48:14 +0000 (20:48 +0000)
DEPRECATED_STREQ.

gdb/ChangeLog
gdb/eval.c

index 2d16d8f2a53e379e342198c033234e9d93d83193..9688a0f9acb49d741f26b8ba88aceed002a675b0 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-28  Mark Kettenis  <kettenis@gnu.org>
+
+       * eval.c (evaluate_struct_tuple): Use strcmp instead of
+       DEPRECATED_STREQ.
+
 2005-06-27  Michael Snyder  <msnyder@redhat.com>
 
        * config/mn10300/linux.mt: New file.
index 20df063d6419b4f754dc73ea46812b1954242fdd..29622ce152ec43c441de4e997fdf51dd790af1c5 100644 (file)
@@ -225,7 +225,7 @@ evaluate_struct_tuple (struct value *struct_val,
                   fieldno++)
                {
                  char *field_name = TYPE_FIELD_NAME (struct_type, fieldno);
-                 if (field_name != NULL && DEPRECATED_STREQ (field_name, label))
+                 if (field_name != NULL && strcmp (field_name, label) == 0)
                    {
                      variantno = -1;
                      subfieldno = fieldno;
@@ -253,9 +253,9 @@ evaluate_struct_tuple (struct value *struct_val,
                                 subfieldno < TYPE_NFIELDS (substruct_type);
                                   subfieldno++)
                                {
-                                 if (DEPRECATED_STREQ (TYPE_FIELD_NAME (substruct_type,
+                                 if (strcmp(TYPE_FIELD_NAME (substruct_type,
                                                              subfieldno),
-                                            label))
+                                            label) == 0)
                                    {
                                      goto found;
                                    }