Keith has pointed out some scenarios my original patch did not address and supplied an alternate solution such that I have modified my patch. This replaces the former patch that was posted. gdb/ChangeLog: 2002-10-15 Jeff Johnston Keith Seitz * 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. Ok to commit? -- Jeff J.