* gdbtypes.h (builtin_type_void): Remove.

* gdbtypes.c (builtin_type_void): Remove.
	(_initialize_gdbtypes): Do not initialize it.

	(safe_parse_type): Add GDBARCH argument.  Use it to construct
	void return type.
	(check_stub_method): Update call.

	* infcall.c (call_function_by_hand): Use platform-specific type
	instead of builtin_type_void.
	* valops.c (value_cast): Use input void type instead of
	builtin_type_void.
This commit is contained in:
Ulrich Weigand
2009-07-02 12:42:36 +00:00
parent 22601c155d
commit 48319d1fc0
5 changed files with 22 additions and 17 deletions

View File

@@ -511,7 +511,7 @@ value_cast (struct type *type, struct value *arg2)
return value_at_lazy (type, value_address (arg2));
else if (code1 == TYPE_CODE_VOID)
{
return value_zero (builtin_type_void, not_lval);
return value_zero (type, not_lval);
}
else
{