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 C687E3858D33 for ; Wed, 25 Jan 2023 13:56:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C687E3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674654977; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OD24ozjszYz9XXU9xOfikxGnYB/7bn3D+k2WQimQREc=; b=jGFuKGIMr35POwv+hrCzJrSHp5EQgivZeUwgz8U4WvPJ5wYaLgRPdvcib+CDZxBG55x2z0 TBFGsz/e4FG/E7SX216ABjJOHW9WrzJ/Q42dmXyMbJsT8SiZIEkOPYGjypZX1D8CSELhga OLYQumAxpAjN5RUXqUEaCRTKnWlnoPk= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-14-2R_7csKTNdaqOjXl-mJbIg-1; Wed, 25 Jan 2023 08:56:16 -0500 X-MC-Unique: 2R_7csKTNdaqOjXl-mJbIg-1 Received: by mail-qv1-f72.google.com with SMTP id f16-20020ad442d0000000b005376362aa66so3382421qvr.1 for ; Wed, 25 Jan 2023 05:56:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OD24ozjszYz9XXU9xOfikxGnYB/7bn3D+k2WQimQREc=; b=wUNaOPfsAc2dAunT9mFoIRVJ7FcymDlbP0rSUmyu3ljTK9au3PMQSO0OK9at26K4tf IN0Afm2GUrZZ8DD49lO3QKI8r0G0hAt6TzNK2kcSl9hJyyPsikczPUtrpuMMMbjMM3Lf 9Z7j7tVdNbhfn+um05RicFjRMhJcoad03lHUtMpjb8XgA+wV0JqQjFsrR0/KUbDdqOLR lpoMwixykErtDKVhN040RMg4uSKuIa91dtozB6zml+KL9a/EFyEneigZZzeS2rukzbG4 R99AO8Ws1YLi5FlM8ejPf4xBHbgLapxcG0nyoZIl+//SCwVMhmqZXb0rDAkfWYv5OP2y hOhw== X-Gm-Message-State: AFqh2krMAgYErmi0NAxkO2us5e7xVAplI6c8wxcxFUjbeR7ejiBczjIS RtmXt+4qPCs+bVW0+hGYYtgN8wXmM9FY7SJv9kB02zRIgu/fKtVUtE5V9v9GXwsCPlq6GFntLqb 5uyU0++DLSZFsm7rt1JJjG87qOPO0jjSncsmeBe8qdo8BWxaygyxad8tEJsVqSfkScjd+k1DAFA == X-Received: by 2002:a05:622a:4897:b0:3a5:3cb5:2485 with SMTP id fc23-20020a05622a489700b003a53cb52485mr54020701qtb.0.1674654975315; Wed, 25 Jan 2023 05:56:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXt8kTqM1dFRLNW3jMDF7e7enH84/DManz7DYR2dxqiPyHBjlRyY4jMDAWKb6mTn7XAoJeeF7g== X-Received: by 2002:a05:622a:4897:b0:3a5:3cb5:2485 with SMTP id fc23-20020a05622a489700b003a53cb52485mr54020672qtb.0.1674654975017; Wed, 25 Jan 2023 05:56:15 -0800 (PST) Received: from localhost (95.72.115.87.dyn.plus.net. [87.115.72.95]) by smtp.gmail.com with ESMTPSA id r4-20020ac84244000000b003b63a734434sm3315576qtm.52.2023.01.25.05.56.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 05:56:14 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCHv2 0/3] Python/TUI Window Creation / Destruction Fixes Date: Wed, 25 Jan 2023 13:56:08 +0000 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Changes since v1: - Rebased onto HEAD of upstream, - Reworded the commit message for patch #2. --- Andrew Burgess (3): gdb/python: allow Python TUI windows to be replaced gdb/python: deallocate tui window factories at Python shut down gdb/tui: don't leak the known_window_types map gdb/python/py-tui.c | 52 ++++++++- gdb/python/python-internal.h | 1 + gdb/python/python.c | 1 + .../gdb.python/tui-window-factory.exp | 105 ++++++++++++++++++ .../gdb.python/tui-window-factory.py | 48 ++++++++ gdb/tui/tui-layout.c | 39 +++---- 6 files changed, 225 insertions(+), 21 deletions(-) create mode 100644 gdb/testsuite/gdb.python/tui-window-factory.exp create mode 100644 gdb/testsuite/gdb.python/tui-window-factory.py base-commit: 2e10cefd83b6a5b0b3745da1134d35a4924db6c5 -- 2.25.4