From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id t5tIBL1tLGOGRj4AWB0awg (envelope-from ) for ; Thu, 22 Sep 2022 10:14:21 -0400 Received: by simark.ca (Postfix, from userid 112) id 02EC51E112; Thu, 22 Sep 2022 10:14:21 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=b+mNyjUI; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 9BDE31E0D3 for ; Thu, 22 Sep 2022 10:14:20 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9B5AD3857C4B for ; Thu, 22 Sep 2022 14:14:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B5AD3857C4B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663856059; bh=yk70MdaAVrMyxqsAn/zbQG3kLU+QjBmSSbEfhrcoGpI=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=b+mNyjUIbbctp4RVAAym4seO04dEM6cyda9khVUgzMYjnGSXFPoMq6/BZKEphcaPL vMKSwa/8AP5phAVDx6tu/i+T79n0NsGJq4HykOS21eSxWdjrjiEHCf1S/1TlzHDVrx KwKNe+QbgLUnubhilnkpURNQpRRlSGQxLLlf4+2c= 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 61C403858400 for ; Thu, 22 Sep 2022 14:13:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 61C403858400 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-240-6n_KJcA5Pty2MfeORUl3BQ-1; Thu, 22 Sep 2022 10:13:53 -0400 X-MC-Unique: 6n_KJcA5Pty2MfeORUl3BQ-1 Received: by mail-ed1-f71.google.com with SMTP id b16-20020a056402279000b0044f1102e6e2so6911344ede.20 for ; Thu, 22 Sep 2022 07:13:51 -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:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=yk70MdaAVrMyxqsAn/zbQG3kLU+QjBmSSbEfhrcoGpI=; b=PDHY1Ui4rcirqXjnCz21APqYKLzDnb2+fD+skw2AkGAK3yT9aFt0vjgxSK1+tXHvz+ Q9XyTWJlKXZ7WnLb+UuFfLrkgHBTUYd49mkHC2sJHb/5hepZtKSXLQhkkn0hRYjcIF8Z xUn/g+JkBQFdeiYnSzJyuYccysKMoTv4NcKiTqdWeyVh6L48IWigm/8IYlsrZzXlgoob iVdbnu3udryWJyzTz7XdKYrYebWhEvZZJ+LhNYpCN8b7UrTJiCRXZvLc94R8i+gYbVSH MBd9WljINDayX7J3/K3bTtdMYEw3kfWEoba68XBpe0NY226t6OgBXh1OQ1fCIl3Y3M33 w8NQ== X-Gm-Message-State: ACrzQf2ze0LJQlpOgs4UEgcoC/PXWMYelxgT4BBc08jAO8l1nIrogkoC oMyKUb5o2UVrKL62Lmi3kxLJ9sVDuVJWxzPHlbQakSUgOjYC0sqjITepc7Gt455rF8eChJIrcUB vLktMWLGqXgFVyeTOVurU1Cxc6+/8+fPBbQ/fftZrrWeM4t13H4bYD5mLMhrEu3/6mcAkbhsW X-Received: by 2002:a17:906:58c8:b0:6fe:91d5:18d2 with SMTP id e8-20020a17090658c800b006fe91d518d2mr3100533ejs.190.1663856030317; Thu, 22 Sep 2022 07:13:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6qMmfmQtuoaf4EQLRpJcL35bgcOdXoIumV//7ZOb97EiH+QshJaLLm4e6h2Lgg10UMRtORoQ== X-Received: by 2002:a17:906:58c8:b0:6fe:91d5:18d2 with SMTP id e8-20020a17090658c800b006fe91d518d2mr3100522ejs.190.1663856030115; Thu, 22 Sep 2022 07:13:50 -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 c7-20020a056402158700b0045479a91f65sm3725825edv.23.2022.09.22.07.13.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Sep 2022 07:13:49 -0700 (PDT) Message-ID: <7d95a227-22cb-62a7-1c5e-0238679a0dd4@redhat.com> Date: Thu, 22 Sep 2022 16:13:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: [PINGv2][PATCH v3 0/2] Fix reverse nexting over recursions To: gdb-patches@sourceware.org, Bruno Larsen References: <20220831120727.2742360-1-blarsen@redhat.com> <1908ddbc-75ed-c0ad-e07e-0567c7e0bea6@redhat.com> In-Reply-To: <1908ddbc-75ed-c0ad-e07e-0567c7e0bea6@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-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: , From: Bruno Larsen via Gdb-patches Reply-To: Bruno Larsen Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" ping! Cheers, Bruno On 14/09/2022 15:16, Bruno Larsen wrote: > ping! > > Cheers, > Bruno > > On 31/08/2022 14:07, Bruno Larsen wrote: >> This patch series fixes gdb record/16678, GDB being unable to >> reverse-next over a recursive function.  However, the simple way to fix >> it hit a snag when I discovered that the amd64 epilogue unwinder would >> give a different frame id than the dwarf2 unwinder would in the rest of >> the function.  This patch series first change this discrepancy, then >> fixes the bug. >> >> Changelog for v3: >>      * fix some comments on the amd64_epilogue_unwinder >>      * fix style for the step-reverse test >> >> Changelog for v2: >>      * Implemented Pedro Alves's suggestion to simplify the fix >>      * Added the first patch to fix a regression that the simple fix >>        would introduce. >> >> Bruno Larsen (2): >>    Change calculation of frame_id by amd64 epilogue unwinder >>    gdb/reverse: Fix stepping over recursive functions >> >>   gdb/amd64-tdep.c                              |  10 +- >>   gdb/infrun.c                                  |   2 +- >>   .../gdb.base/unwind-on-each-insn-foo.c        |  22 +++ >>   gdb/testsuite/gdb.base/unwind-on-each-insn.c  |  25 +++ >>   .../gdb.base/unwind-on-each-insn.exp          | 154 ++++++++++++++++++ >>   gdb/testsuite/gdb.reverse/step-precsave.exp   |   6 +- >>   gdb/testsuite/gdb.reverse/step-reverse.c      |  18 +- >>   gdb/testsuite/gdb.reverse/step-reverse.exp    |  58 ++++++- >>   8 files changed, 282 insertions(+), 13 deletions(-) >>   create mode 100644 gdb/testsuite/gdb.base/unwind-on-each-insn-foo.c >>   create mode 100644 gdb/testsuite/gdb.base/unwind-on-each-insn.c >>   create mode 100644 gdb/testsuite/gdb.base/unwind-on-each-insn.exp >>