[PATCH] Guard a call to TYPE_TARGET_TYPE in gnuv3_pass_by_reference

Siva Chandra sivachandra@google.com
Thu Oct 23 19:09:00 GMT 2014


On Thu, Oct 16, 2014 at 12:01 PM, Siva Chandra <sivachandra@google.com> wrote:
> The patch updated with a test case is attached.
>
> 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.

Ping.



More information about the Gdb-patches mailing list