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

Nick Roberts nickrob@snap.net.nz
Mon Jul 4 10:17:00 GMT 2005


 >        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



More information about the Gdb-patches mailing list