RFA: gdbarchify RETURN_VALUE_ON_STACK
Jim Blandy
jimb@zwingli.cygnus.com
Wed Apr 19 14:20:00 GMT 2000
> > 2000-04-17 Jim Blandy <jimb@redhat.com>
> >
> > Bring RETURN_VALUE_ON_STACK under gdbarch's control.
> > * gdbarch.sh (RETURN_VALUE_ON_STACK): New entry.
> > * gdbarch.c, gdbarch.h: Regenerated.
> > * arch-utils.c (default_return_value_on_stack): New function.
> > * arch-utils.h (default_return_value_on_stack): New declaration.
>
> I'd suggest the function name ``generic_return_value_on_stack_not'' (I
> know the name grates) declared as:
> extern gdbarch_return_value_on_stack_ftype ...;
>
> For the arch line, I'd suggest the change:
>
> - f:2:RETURN_VALUE_ON_STACK:int:return_value_on_stack:struct type
> *type:type:::default_return_value_on_stack
> + f:2:RETURN_VALUE_ON_STACK:int:return_value_on_stack:struct type
> *type:type:::default_return_value_on_stack:0
>
> (I think I've set valid_p=0). The generated gdbarch.[hc] will then
> always provide a default. That in turn allowing the #ifndef
> RETURN_VALUE_ON_STACK in values.c to be deleted. Have a look at
> REGISTER_NAME.
>
> After that its ok,
Okay --- I've made these changes, and will commit the result.
More information about the Gdb-patches
mailing list