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 4CCA1385771C for ; Mon, 21 Aug 2023 09:31:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4CCA1385771C 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=1692610293; 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; bh=sPt6zopNcH0YL8MLX4Y9rx17IDdJEe1yCOL1mLYaxDM=; b=BiTpDWjP7/awvMaYIPMBZtXD0lVVw1fGTFk6s/dyORImHButlu4mr0OVyqnSnbQEZrsdqu TO5/cL99/5Gm/EAskTsnRA1GVV0NjLN2JenktG2ifVn/48hrQ1qRIe9+xcxzG5WbBeluHF lf2mryHphuSC1BPHKr977flFwlfQuzc= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-644-hqRQpzgiMo2A8yMirD4FJg-1; Mon, 21 Aug 2023 05:31:31 -0400 X-MC-Unique: hqRQpzgiMo2A8yMirD4FJg-1 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-99bca0b9234so195662766b.2 for ; Mon, 21 Aug 2023 02:31:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692610290; x=1693215090; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sPt6zopNcH0YL8MLX4Y9rx17IDdJEe1yCOL1mLYaxDM=; b=P7faoPJIWZWv8OzsOhPQud43C5hxIsVnBVLCzJTtGbnSAHS9EeIJ9zTiCX/G7MkOEj bpi5SNZJzfYMfYNC9euZHl3o7+Ap5LzxgCGtKHnlg1fprK5btflv106jPKdDvRAuLRzo VtsCFwm4s9I+tDZusorv1JtvZViDRWdCdyA3WJ5Fy/JQK2GAcw6xtBViPuacMcaoKje9 KQ4JJs1ZBOjbGMdg6MuFqH3Sgqovi0ik7AACH49RnE+HI00ydjknlC4mSG/U4PKljXnA f9QdMMJaKPnYtcoNbv+wPsiF10ZiwnezyVaUmml2R+sTj32EnKr8qlQgkd1/s6einrwk axOQ== X-Gm-Message-State: AOJu0Ywl3qiWomupUi8tak6iWWK91JjPDHaWSOfg9aj+Wo8HfAHgy9AN KOh+GetpxyTVMBZZT9yI6+f0fjA7wcmf8jnfrzw5/5kzdKXpp9f9D04yAGLMItlDqd8DiMl6VQk Usm3LUsrROu/Cugr0MwCpOkBDTGTSqhLntzmnBk4nfoQqbn9pcvcs94QyJRYWP6sVkbl/EDE7D3 AkcKuCVQ== X-Received: by 2002:a17:906:8a45:b0:99e:85d:19ad with SMTP id gx5-20020a1709068a4500b0099e085d19admr4361332ejc.46.1692610290428; Mon, 21 Aug 2023 02:31:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF7uXQzHftxU8z6I5ZQt13vUzKsEU/wS3OD8BiszfJX0KJECs7E1tuLVcP+nU79N2ehUPNHiw== X-Received: by 2002:a17:906:8a45:b0:99e:85d:19ad with SMTP id gx5-20020a1709068a4500b0099e085d19admr4361320ejc.46.1692610290147; Mon, 21 Aug 2023 02:31:30 -0700 (PDT) Received: from localhost ([31.111.84.232]) by smtp.gmail.com with ESMTPSA id y17-20020a170906525100b00992c92af6f4sm6297372ejm.144.2023.08.21.02.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Aug 2023 02:31:29 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Pedro Alves , Andrew Burgess Subject: [PATCH 0/3] Fix thread exited messages for remote targets Date: Mon, 21 Aug 2023 10:31:24 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 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.9 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_H4,RCVD_IN_MSPIKE_WL,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: The point of this series is to fix the thread ... exited messages for remote targets. I made a previous attempt to fix this issue: https://inbox.sourceware.org/gdb-patches/0215c520c680334efac7f0544d834ec1fb7aff8e.1669634536.git.aburgess@redhat.com/ https://inbox.sourceware.org/gdb-patches/d6d49338119d2a32e060f95219aacac31bdf4886.1674207665.git.aburgess@redhat.com/ But Pedro hinted that he had a better solution as part of his step over clone/exit work, the latest version of which can be found here: https://inbox.sourceware.org/gdb-patches/20221212203101.1034916-31-pedro@palves.net/ Unfortunately, the larger series, of which that commit is a part, seems to have stalled. However, that particular patch doesn't really depend on anything else in the series, and so, in this series I've pulled out this one patch (3/3), along with one other patch on which the above sort-of depended (1/3 - this changes a similar area of GDB). The remaining patch (2/3) is my own work, and is an additional refactor which I think follows naturally from the first patch. Patches #1 and #3 are mostly Pedro's work, though, some updates were needed during the rebase. Any bugs introduced by the rebase are mine. --- Andrew Burgess (1): gdb: remove the silent parameter from exit_inferior_1 and cleanup Pedro Alves (2): gdb: make inferior::clear_thread_list always silent gdb: centralize "[Thread ...exited]" notifications gdb/annotate.c | 4 +- gdb/breakpoint.c | 4 +- gdb/bsd-kvm.c | 2 +- gdb/corelow.c | 2 +- gdb/fbsd-nat.c | 3 - gdb/gdbthread.h | 22 ++++++-- gdb/inferior.c | 35 ++++-------- gdb/inferior.h | 12 ++-- gdb/infrun.c | 2 +- gdb/interps.c | 6 +- gdb/interps.h | 8 ++- gdb/linux-nat.c | 8 +-- gdb/mi/mi-interp.c | 4 +- gdb/mi/mi-interp.h | 3 +- gdb/netbsd-nat.c | 3 - gdb/observable.h | 11 ++-- gdb/procfs.c | 6 -- gdb/python/py-inferior.c | 4 +- gdb/testsuite/gdb.mi/mi-thread-bp-deleted.exp | 14 +---- .../gdb.threads/thread-bp-deleted.exp | 12 +--- gdb/thread.c | 56 +++++++++++++------ gdb/tracectf.c | 2 +- gdb/tracefile-tfile.c | 2 +- gdb/windows-nat.c | 20 ++----- 24 files changed, 121 insertions(+), 124 deletions(-) base-commit: b080fe54fb3414b488b8ef323c6c50def061f918 -- 2.25.4