From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by sourceware.org (Postfix) with ESMTPS id 14C67385783F for ; Fri, 6 Nov 2020 23:02:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 14C67385783F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wm1-x336.google.com with SMTP id k18so2754339wmj.5 for ; Fri, 06 Nov 2020 15:02:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tZY3xT+0PixHX+1q4TVwVg5r3N5qFiyk1kwiKfwWpuo=; b=NxT9GH0c8fyM/a4ns+sNqr2EpXfg1fuqcd/YKh5OfSCwxL5qxB3j/3hH/20SqkEron LtkzP1bDXnk/jsQ2pucQwiHEGDkZXlQf/oVyVCOpE1XS/IdhNWudz0XVP1A7aKDJJKz1 EI+DoixabitKo1x43bPijG55iQjkLayz/MTmTiO4mt0cUfKcgMZd51NhSAbosHt5dcEM oSl2kLrol1AY+GZV5ZR3RXRVGDTnHoYqjHpqVxVis0kOglncxVK6p1+ERSFZ11T/B0tn PWPKNyFMxIieo8W4u/vHJqouajVbKQrqlKyz3TfckEDlcMKn3tLTYxii0FbbczjMQkD5 yFTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tZY3xT+0PixHX+1q4TVwVg5r3N5qFiyk1kwiKfwWpuo=; b=Qx6N3Al5uLsBbwz92OCiYbCfjh+f42CnhbCNpAMUxVKnJPBOdxZV5CLF3qj8XmsbKk fKJlwFJwhIJ57+WMwnEIvBrtDPFx3lsu4KhHejy2NwQh+9qISqoxcV2xwrNNPNPIzOmg aqngq6JJ6Yvj9CT+INLvPL4DLcfj1ghxYweB+3what5LbJ+HvBcw7BpOOH2TQA20Z1C7 Jx3lUmspPonoASto4PszFXs/1+myW7Oc+huhgyefR6E8MhqPwn24FL2QLUsrGhb8yubK S1ec7WbXJYqKYZ3DMG1YNeyGMujdIlXx4YKlKRrRjPTeoiubusiYaQNqy4WOY34U0FRK S6rA== X-Gm-Message-State: AOAM530N2F0G3JhKOZBCaETrODXOrkpE+qrp8TDiOT5fbTE9Xg/2jKO7 RqyWBFeFG7G5MkfhK73cpABWN5hcGvhLCQ== X-Google-Smtp-Source: ABdhPJwbxM94xbI4qK7Kqege3uq55IiVZpCl4yhED0SJjkSL7qSs9hbmqe+K5uZcuKsodRSQEnmlXg== X-Received: by 2002:a1c:3c4:: with SMTP id 187mr1858569wmd.14.1604703735891; Fri, 06 Nov 2020 15:02:15 -0800 (PST) Received: from localhost (host109-154-72-197.range109-154.btcentralplus.com. [109.154.72.197]) by smtp.gmail.com with ESMTPSA id t1sm4134789wrs.48.2020.11.06.15.02.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 15:02:15 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCHv4 0/2] Restore thread and frame patches Date: Fri, 6 Nov 2020 23:02:06 +0000 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: <20201008095950.GN605036@embecosm.com> References: <20201008095950.GN605036@embecosm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Fri, 06 Nov 2020 23:02:18 -0000 V4 is a rebase of v3 to take account of a recent commit by Pedro. As a result I've dropped patch #1 from the v3 series. The remaining two patches have a couple of minor updates as a result, but Pedro's recent commit basically replaced my patch #1. [ I think the v3 patch #1 did add value that wasn't included in Pedro's commit, but I'd rather this series just focus on the remaining two patches for now. I might resurrect the old #1 at a later date. ] No changes to documentation in this iteration. Retested, with no regressions. Thanks, Andrew --- Andrew Burgess (2): gdb: Restore previously selected thread when switching inferior gdb: Track the current frame for each thread gdb/ChangeLog | 34 ++ gdb/NEWS | 19 + gdb/doc/ChangeLog | 14 + gdb/doc/gdb.texinfo | 42 ++- gdb/frame.c | 26 ++ gdb/gdbthread.h | 13 +- gdb/inferior.c | 58 ++- gdb/inferior.h | 10 + gdb/testsuite/ChangeLog | 10 + .../gdb.threads/restore-selected-frame.c | 85 +++++ .../gdb.threads/restore-selected-frame.exp | 336 ++++++++++++++++++ gdb/testsuite/gdb.threads/restore-thread.c | 248 +++++++++++++ gdb/testsuite/gdb.threads/restore-thread.exp | 219 ++++++++++++ gdb/thread.c | 61 +++- 14 files changed, 1160 insertions(+), 15 deletions(-) create mode 100644 gdb/testsuite/gdb.threads/restore-selected-frame.c create mode 100644 gdb/testsuite/gdb.threads/restore-selected-frame.exp create mode 100644 gdb/testsuite/gdb.threads/restore-thread.c create mode 100644 gdb/testsuite/gdb.threads/restore-thread.exp -- 2.25.4