This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [review v3] testsuite, cp: increase the coverage of testing pass-by-ref arguments
- From: "Aktemur, Tankut Baris" <tankut dot baris dot aktemur at intel dot com>
- To: Luis Machado <luis dot machado at linaro dot org>, "tromey at sourceware dot org" <tromey at sourceware dot org>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 15 Jan 2020 14:30:06 +0000
- Subject: RE: [review v3] testsuite, cp: increase the coverage of testing pass-by-ref arguments
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5vmcgbLhqbbFDFGCRc0u3/F5+rJ9gcyu4vzJ1C9j4Fc=; b=BhueXg6OwKc8RkjotzcXDByr/S2BlzMIRoUs8iQ3gkmZmqKuXS1vyx45r4fq2EhbVcCzN+Zp4OISMhu/36/WrTkXDjKj3PUCqOQt36fiNzChqnpHsdGtm3oyuOenc1FysQjbdNYF0oUIQftlNqvOjaIXAFyZhk443hldL96agNs+ftCUXKry9eR4O0ZtIMxFbVuzSgo4bRM2ibYrVeUYHqx93W/W1Hl+Upxp09PQ1M8sX1CPUPsYizJwtO/Wg95nMwaEN8VrVEP8WNZsxr63xBYMutV0cXAk40bywppwKdrhu8dO6TBMyuxhos4lT28Y0KBXH9jFsUMnMjOSAawVTQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OtUiTFTW+RBX2r0d0e8rpV/pQRg6rn8+ANp+4HBbqUTyr90cF3/kPZZPoI69+A2sSX7PXfV3DMuguV74/b3m1u0tgjOUZ5EpKy1p+S0aqFPnXmy5ZPM4qHLRksCI80UAnXe3nzEn311h2KO1N7yve9VzeHm28cgDOTUR3eT1s1jyi7OOY4w2LaVvtvflJXsdDH0QVNIbVKJE1gp7Tgg1cbZoSo0q/QDTa1NW3bAeBJrUjH3BF/V+HBRjZB1iVbMQGm5N0XJE6YMIckULuNALMNmLnyT3Uy9J+Bv+GfjaE9H3V8dbmbV2wS5aou7mQsJgKxWtxoJ4cOO/e5Udi9/AJw==
- References: <gerrit.1571406803000.Ie8ab1f260c6ad5ee4eb34b2c1597ce24af04abb6@gnutoolchain-gerrit.osci.io> <20191214095325.3864520AF6@gnutoolchain-gerrit.osci.io> <80c8502f-a350-6a2b-0b72-bbc903f53bc3@linaro.org> <BYAPR11MB303086E7E215497004A14C85C4350@BYAPR11MB3030.namprd11.prod.outlook.com> <c658e5fb-6d74-04b4-4580-1b07c78a3a79@linaro.org> <BYAPR11MB30307B36A2F435A3FFE38FF3C4350@BYAPR11MB3030.namprd11.prod.outlook.com> <BYAPR11MB3030861F3DA980E1257F02E1C4340@BYAPR11MB3030.namprd11.prod.outlook.com> <0dd26985-5952-d010-135f-a92aba6f9a05@linaro.org>
On Tuesday, January 14, 2020 2:13 PM, Luis Machado wrote:
>
> On 1/14/20 9:52 AM, Aktemur, Tankut Baris wrote:
> >
> > I've investigated GCC and Clang for this. GCC started emitting DW_AT_deleted and
> > DW_AT_defaulted with version 7. Clang does not emit these attributes; however, it
> > has been emitting DW_AT_calling_convention starting with version 7. This
> > attribute helps the debugger make the right decision in some cases.
> >
> > Based on this, I think the test cases have to be filtered in a somewhat
> > fine-granular manner. Therefore I thought I could save you from the burden of
> > having to go through the code-generating test definition. Below is a patch proposal.
> >
> > -Baris
>
> Thanks! I've checked this on my box with an older GCC and i see the
> XFAIL's now. So it looks good to me.
>
> Small nit below...
>
Thank you. I'll fix that and wait for an official approval.
-Baris
> > +# GCC version <= 6 and Clang do not emit DW_AT_defaulted and DW_AT_deleted
> > +set is_gcc_6_or_older [test_compiler_info {gcc-[0-6]-*}]
> > +set is_clang [test_compiler_info {clang-*}]
> > +
> > set bp_location [gdb_get_line_number "stop here"]
> > gdb_breakpoint $bp_location
> > gdb_continue_to_breakpoint "end of main" ".*return .*;"
>
> It seems to be a mixed bag, but i see more examples of having a period
> after the sentence than not having it. Multiple cases of this on the patch.
>
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Gary Kershaw
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928