The following is a proposed patch for gdb/mi 792. The problem occurs because the code is trying to reference public, private, and protected via indexes. The order of the fields in the type are in the order they are entered so the index cannot be used computationally. The new code takes the index and does a loop through the fields verifying that the field has the desired access control. It decrements the index until the desired indexed value with the specified access is found. gdb/ChangeLog: 2002-10-11 Jeff Johnston * varobj.c (cplus_name_of_child): Change code to handle the fact that fields are not necessarily contiguous with regards to their access control. This is a fix for PR gdb/792. May this code be committed? -- Jeff J.