This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH/RFC/RFA] Print in-memory struct return values


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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]