Guard a call to TYPE_TARGET_TYPE in gnuv3_pass_by_reference.
authorSiva Chandra <sivachandra@chromium.org>
Thu, 16 Oct 2014 14:14:13 +0000 (07:14 -0700)
committerSiva Chandra <sivachandra@chromium.org>
Fri, 24 Oct 2014 12:45:06 +0000 (05:45 -0700)
commit3433cfa51f6397231ffe2b2c69298eff89179769
treea23794d36eba05860099cb464be0fb2f152792bb
parent68fcca92b735bb46e38331485ac2e933e5876b83
Guard a call to TYPE_TARGET_TYPE in gnuv3_pass_by_reference.

gdb/ChangeLog:

* gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
on the arg type of a constructor only if it is of reference type.

gdb/testsuite/ChangeLog:

* gdb.cp/non-trivial-retval.cc: Add a test case.
* gdb.cp/non-trivial-retval.exp: Add a test.
gdb/ChangeLog
gdb/gnu-v3-abi.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/non-trivial-retval.cc
gdb/testsuite/gdb.cp/non-trivial-retval.exp