gdb: remove TYPE_FIELD_TYPE macro
[deliverable/binutils-gdb.git] / gdb / p-exp.y
index 6403e410571656d971faea7f3a6ce1bc17467995..85ef4bd385297a7ee2a31bbff27140f92aae2f6d 100644 (file)
@@ -316,8 +316,9 @@ exp :       exp '['
                              stringsval.ptr = buf;
                              stringsval.length = strlen (arrayname);
                              strcpy (buf, arrayname);
-                             current_type = TYPE_FIELD_TYPE (current_type,
-                               arrayfieldindex - 1);
+                             current_type
+                               = (current_type
+                                  ->field (arrayfieldindex - 1).type ());
                              write_exp_elt_opcode (pstate, STRUCTOP_STRUCT);
                              write_exp_string (pstate, stringsval);
                              write_exp_elt_opcode (pstate, STRUCTOP_STRUCT);
This page took 0.04454 seconds and 4 git commands to generate.