diff options
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 1dac738..4125fc0 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1825,9 +1825,7 @@ do_search_struct_field (const char *name, struct value *arg1, int offset, } if (t_field_name - && (t_field_name[0] == '\0' - || (TYPE_CODE (type) == TYPE_CODE_UNION - && (strcmp_iw (t_field_name, "else") == 0)))) + && t_field_name[0] == '\0') { struct type *field_type = TYPE_FIELD_TYPE (type, i); |