This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [PATCH: gdb/mi + doco] -var-update


 >        type = varobj_get_type (*cc);
 > +      if (mi_print_value_p (type, print_values))
 > +	ui_out_field_string (uiout, "value", varobj_get_value (*cc));

type here is char * (perhaps varobj_get_type should be renamed), but you're
treating it as struct type * in mi_print_value_p.  Using "--simple-values" can
give a segmentation fault.

Nick


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