X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Feval.c;fp=gdb%2Feval.c;h=023b629c1aa7bb363e78b5e1d3d33326fa005cf8;hb=5e33d5f4e1a5f2c3556ee31715ddc030d039b597;hp=ea08602788085d9cb8d6ab56b28d5fc347b65a6f;hpb=9392ebb3bbe4a43726ee8939c5447d88c7d3c1e4;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/eval.c b/gdb/eval.c index ea08602788..023b629c1a 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -682,7 +682,7 @@ fake_method::fake_method (type_instance_flags flags, neither an objfile nor a gdbarch. As a result we must manually allocate memory for auxiliary fields, and free the memory ourselves when we are done with it. */ - TYPE_NFIELDS (type) = num_types; + type->set_num_fields (num_types); TYPE_FIELDS (type) = (struct field *) xzalloc (sizeof (struct field) * num_types);