gdb/
authorYao Qi <yao@codesourcery.com>
Fri, 8 Jun 2012 14:24:57 +0000 (14:24 +0000)
committerYao Qi <yao@codesourcery.com>
Fri, 8 Jun 2012 14:24:57 +0000 (14:24 +0000)
commit18648a37491f7c0a459750048611bd2e83aa54bf
tree4a5d0b3c65985e5982b2cbff9c4cc0a27940014e
parent16bdd41fc61515376a944d7e81b7adcb126bcb4e
gdb/
* arch-utils.c (default_return_in_first_hidden_param_p): New.
* arch-utils.h: Declare.
* gdbarch.sh: Add return_in_first_hidden_param_p.
* gdbarch.c, gdbarch.h: Regenerated.
* infcall.c (call_function_by_hand): Call
gdbarch_return_in_first_hidden_param_p instead of
language_pass_by_reference.

* m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
(m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
* sh-tdep.c (sh_return_in_first_hidden_param_p): New.
(sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
* tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
`cplus_return_struct_by_reference'.
(tic6x_return_value): Handle language cplusplus.
(tic6x_return_in_first_hidden_param_p): New.
(tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
gdb/ChangeLog
gdb/arch-utils.c
gdb/arch-utils.h
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh
gdb/infcall.c
gdb/m68k-tdep.c
gdb/sh-tdep.c
gdb/tic6x-tdep.c