+2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
+
+ * gdb/infcmd.c (print_return_value): use type_to_string to print type.
+
2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
* elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
}
else
{
+ struct cleanup *oldchain;
+ char *type_name;
+
+ type_name = type_to_string (value_type);
+ oldchain = make_cleanup (xfree, type_name);
ui_out_text (uiout, "Value returned has type: ");
- ui_out_field_string (uiout, "return-type", TYPE_NAME (value_type));
+ ui_out_field_string (uiout, "return-type", type_name);
ui_out_text (uiout, ".");
ui_out_text (uiout, " Cannot determine contents\n");
+ do_cleanups (oldchain);
}
}
+2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
+
+ * gdb.base/structs.exp: Check for correct struct on finish.
+
2015-02-26 Yao Qi <yao.qi@linaro.org>
* lib/dwarf.exp (function_range): Adjust pattern when $func_length
-re "Value returned is .*${gdb_prompt} $" {
pass "${test}"
}
- -re "Cannot determine contents.*${gdb_prompt} $" {
+ -re "Value returned has type: struct struct$n. Cannot determine contents.*${gdb_prompt} $" {
# Expected bad value. For the moment this is ok.
set finish_value_known 0
pass "${test}"