From edf8c5a3cc053744b8b95b3ba2bbd8ebfc6ce9db Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 28 Jun 2005 20:48:14 +0000 Subject: [PATCH] * eval.c (evaluate_struct_tuple): Use strcmp instead of DEPRECATED_STREQ. --- gdb/ChangeLog | 5 +++++ gdb/eval.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2d16d8f2a53..9688a0f9acb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2005-06-28 Mark Kettenis + + * eval.c (evaluate_struct_tuple): Use strcmp instead of + DEPRECATED_STREQ. + 2005-06-27 Michael Snyder * config/mn10300/linux.mt: New file. diff --git a/gdb/eval.c b/gdb/eval.c index 20df063d641..29622ce152e 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -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; } -- 2.30.2