From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 8FD833858CDA for ; Mon, 5 Sep 2022 14:59:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8FD833858CDA Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-138-OoS7dEmmNKSkzV-9cbIT4Q-1; Mon, 05 Sep 2022 10:59:44 -0400 X-MC-Unique: OoS7dEmmNKSkzV-9cbIT4Q-1 Received: by mail-ed1-f71.google.com with SMTP id q18-20020a056402519200b0043dd2ff50feso5891610edd.9 for ; Mon, 05 Sep 2022 07:59:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=eANzmgU8zSORPs99zLeIldISMOSb74anLrfxjpCM8iU=; b=d5oz5in8/UcM0RXxdSxNPw80TB+qoKFXg/l46n1CErDaZiXUBvLNh8bslFLK3gDiWt 4vWC+RA8rhdkxw/lfjqS2Y6pGUfwmS0cPU0WwMom4Xhu49rdsLLA/cCwKaKdkOBfhgER fobFWGLx+6H4ce/H/dSQlCpkTCOF0SxBUv6i3R2zRAp7+poetlclWECnKxNvihcI6F7m gHw9tte002x1Vte7EcjhQOM25iAPPY+SJMhsFmTSdp4zEM5mwplldM+xzraFiZGkvyqp npdMkx/ztrnSB4pq/3unNZhwv5h+PpYrD5E4lTuUUXQKKdP6zYnVI3qeiVP0h2xAx2Hb tg7w== X-Gm-Message-State: ACgBeo24pRBhXPFGRETWGZvduslvOiyf8pCOMlR3nHS+15WQCDk5TbGc 6dfXz28QTrvVermM28GjkjvE67YWKFpGuvi0YILKyGCFH711AELbUSfr9fhDRTtg2qxup+aOEqo c4R73QfTW2wX2wfMr88GIXA== X-Received: by 2002:a17:906:6a0f:b0:730:df34:6ec4 with SMTP id qw15-20020a1709066a0f00b00730df346ec4mr37549942ejc.659.1662389983651; Mon, 05 Sep 2022 07:59:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Nj8nevYOQtaBYuV6cSMXlxYGi9DlIyyCOkz96aJO/VatiuhsUK/3jWg6AZp2ym8fJDPqvWg== X-Received: by 2002:a17:906:6a0f:b0:730:df34:6ec4 with SMTP id qw15-20020a1709066a0f00b00730df346ec4mr37549933ejc.659.1662389983474; Mon, 05 Sep 2022 07:59:43 -0700 (PDT) Received: from [192.168.0.45] (ip-213-220-232-121.bb.vodafone.cz. [213.220.232.121]) by smtp.gmail.com with ESMTPSA id la8-20020a170907780800b00741383c1c5bsm5157736ejc.196.2022.09.05.07.59.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Sep 2022 07:59:42 -0700 (PDT) Message-ID: <6516c9d4-14a9-0d0c-a8a8-df35290e7071@redhat.com> Date: Mon, 5 Sep 2022 16:59:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: [PINGv4][PATCH v4 00/15] Clean gdb.base when testing with clang To: Bruno Larsen , gdb-patches@sourceware.org References: <20220720194441.168906-1-blarsen@redhat.com> <73fc7290-2168-adcf-b97b-01d81968bcdf@redhat.com> <64419112-959f-75b9-3665-2a943e1b39a5@redhat.com> From: Bruno Larsen In-Reply-To: <64419112-959f-75b9-3665-2a943e1b39a5@redhat.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, BODY_8BITS, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2022 14:59:48 -0000 ping! On 25/08/2022 09:51, Bruno Larsen wrote: > ping! > > On 18/08/2022 09:25, Bruno Larsen wrote: >> ping 2! >> >> On 20/07/2022 21:44, Bruno Larsen wrote: >>> When testing GDB with clang, gdb.base had over 50 more failures than >>> when >>> testing with gcc.  Examining the failed tests led to a few clang >>> bugs, a >>> few GDB bugs, and many testsuite assumptions that could be changed. >>> >>> After this patch series, nothing should be changed for testing with >>> gcc, >>> and testing with clang should only show non-trivial failures for >>> maint.exp and macscp.exp, along with the same GCC failures. >>> >>> Changes in v4: >>>      * Added new test to step through a function's epoligue >>>      * renamed gdb_step_until_regexp -> gdb_step_until >>>      * small style and wording changes in patches 1 and 2 >>>      * Dropped patch 3 - no longer necessary >>>      * patch 4 was reworked based on Andrew's suggestion >>> small note, Andrew has OK'd patched 5 and 6 (currently 4 and 5) in v3; >>> >>> Changes in v3: >>>      * Fixed some issues that only showed up on CXX_FOR_TARGET=clang >>>      * rebased on current master >>> >>> Changes in v2: >>>      * Introduced gdb_step_until_regexp, based on Pedro's and >>> Andrew's suggestions >>>      * reworked fixes for: skip.exp, skip-solib.exp and msym-bp-shl.exp >>>      * Used Pedro's suggestion for call-ar-st >>>      * reordered patches slightly >>> >>> Bruno Larsen (15): >>>    gdb/testsuite: introduce gdb_step_until >>>    gdb/testsuite: Add a proc to test where compiler links the epilogue >>>    Change gdb.base/skip-solib.exp deal with lack of epilogue >>> information >>>    gdb/testsuite: change gdb.base/nodebug.exp to not fail with clang >>>    update gdb.base/info-program.exp to not fail with clang >>>    fix gdb.base/access-mem-running.exp for clang testing >>>    Fix gdb.base/call-ar-st to work with Clang >>>    add xfails to gdb.base/complex-parts.exp when testing with clang >>>    gdb/testsuite: fix gdb.base/msym-bp-shl when running with Clang >>>    explicitly test for stderr in gdb.base/dprintf.exp >>>    gdb/testsuite: Update gdb.base/so-impl-ld.exp >>>    [gdb/testsuite]: fix gdb.base/jit-elf.exp when testing with clang >>>    gdb/testsuite: fix gdb.base/info-types-c++ with clang >>>    gdb.base/skip.exp: Use finish to exit functions >>>    gdb/testsuite: Add test to step through function epilogue >>> >>>   gdb/testsuite/gdb.base/access-mem-running.c   |   2 +- >>>   gdb/testsuite/gdb.base/call-ar-st.exp         |  13 ++- >>>   gdb/testsuite/gdb.base/complex-parts.exp      |   5 + >>>   gdb/testsuite/gdb.base/dprintf.exp            |  10 ++ >>>   gdb/testsuite/gdb.base/info-program.exp       |   2 +- >>>   gdb/testsuite/gdb.base/info-types.exp.tcl     | 109 >>> ++++++++++++------ >>>   gdb/testsuite/gdb.base/jit-elf.exp            |   2 +- >>>   gdb/testsuite/gdb.base/msym-bp-shl.exp        |   8 ++ >>>   gdb/testsuite/gdb.base/nodebug.exp            |  12 +- >>>   gdb/testsuite/gdb.base/skip-inline.exp        |  23 ++-- >>>   gdb/testsuite/gdb.base/skip-solib-lib.c       |   3 +- >>>   gdb/testsuite/gdb.base/skip-solib-main.c      |   3 +- >>>   gdb/testsuite/gdb.base/skip-solib.exp         |  12 +- >>>   gdb/testsuite/gdb.base/skip.exp               |  32 +++-- >>>   gdb/testsuite/gdb.base/so-impl-ld.exp         |  13 +-- >>>   gdb/testsuite/gdb.base/solib1.c               |   5 +- >>>   .../gdb.base/step-through-epilogue.c          |  15 +++ >>>   .../gdb.base/step-through-epilogue.exp        |  86 ++++++++++++++ >>>   gdb/testsuite/lib/gdb.exp                     |  62 ++++++++++ >>>   19 files changed, 334 insertions(+), 83 deletions(-) >>>   create mode 100644 gdb/testsuite/gdb.base/step-through-epilogue.c >>>   create mode 100644 gdb/testsuite/gdb.base/step-through-epilogue.exp >>> -- Cheers, Bruno