[PATCH/RFC/RFA] Print in-memory struct return values
Andrew Cagney
cagney@gnu.org
Fri May 7 22:35:00 GMT 2004
> The current GDB doesn't print the return value when using `finish' for
> functions return structures that are not returned in registers. Note
> that this is a regression from GDB 6.0 for many systems. Anyway, the
> attached patch provides a way to fix this, and adds the necessary
> support to the i386 target.
>
> If there are no comments, I'll check this in in a few days. Eli, is
> the doc bit OK?
Why not add another member to `enum return_value_convention' so that
return_value() can directly differentate between these two cases?
Andrew
> Index: ChangeLog
> from Mark Kettenis <kettenis@gnu.org>
>
> * gdbarch.sh (gdbarch_return_value_address): New method.
> * gdbarch.h, gdbarch.c: Re-generate.
> * infcmd.c (print_return_value): Use new
> gdbarch_return_value_address method if provided.
> * i386-tdep.c (i386_return_value_address): New function.
> (i386_gdbarch_init): Set return_value_address.
>
More information about the Gdb-patches
mailing list