Remove remnant of Chill support

Message ID yjt2wq6i7t2n.fsf@ruffy.mtv.corp.google.com
State New, archived
Headers

Commit Message

Doug Evans Nov. 25, 2014, 11:34 p.m. UTC
  Hi.

I happened to notice this remnant of the old Chill support
which has long since been removed.

2014-11-25  Doug Evans  <dje@google.com>

	* valops.c (do_search_struct_field): Remove remnant of chill support.
	Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
  

Comments

Doug Evans Dec. 3, 2014, 2:38 a.m. UTC | #1
Doug Evans writes:
 > Hi.
 > 
 > I happened to notice this remnant of the old Chill support
 > which has long since been removed.
 > 
 > 2014-11-25  Doug Evans  <dje@google.com>
 > 
 > 	* valops.c (do_search_struct_field): Remove remnant of chill support.
 > 	Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e

Committed.
  

Patch

diff --git a/gdb/valops.c b/gdb/valops.c
index 2a1db90..03c9f03 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -1824,9 +1824,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);