This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

MI: -var-list-children --simple-values


Hello,

it looks like 

       -var-list-children --simple-values

is broken on mainline. Printing children of any C++ structure results in 
segfault. The problem is that C++ structures have "public" fake child
that has no type, so mi_print_value_p tries to access properties of  a NULL 
type.

This is easy to fix, but given that printing C++ structures is a mainstream 
use-case, and no IDE developer ever complained, this suggests that this 
feature is not used. Rather than carry it along, how about just removing it?

- Volodya


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]