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 056613858430 for ; Thu, 21 Apr 2022 16:46:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 056613858430 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-12-HIXiOsr3NwaPDNzDiRM3RA-1; Thu, 21 Apr 2022 12:46:01 -0400 X-MC-Unique: HIXiOsr3NwaPDNzDiRM3RA-1 Received: by mail-wr1-f72.google.com with SMTP id t17-20020adfa2d1000000b0020ac519c222so245185wra.4 for ; Thu, 21 Apr 2022 09:46:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kfjDLUOG2ocf8aHdESHKh2Cmdto/L3673iRHZ5J1EII=; b=WE4OULPlJ3pxNnHv9tl7wv3JzXbX+C5HJvaiS1jRQZV7LDPAxhTTR1AcRBhHEmM0z0 WbMoPScx+xEgRddsyxKLjIGGo6NRLiZ3u91/7rgbSBHbwubL5L+uWHLuHsM0h/7ATf2Q M1ogFDTBYq5SvQRimfXebKfyspYvC6dWu4/7f3fSnmeaPIEDb/tTv3LKb1hsT6kFOfu+ z23RlfckVUSXvp2LLtodtVNZsrv3l0ZWPvk+ev56S3H9ZFZYJ9Ybp/FRwI40hZbBicUN 5+3jfn8itZLwrewupk0ILqlJ+NUXYTJV1/QXE22qKIgLBzj4Sp1uyQUUfhaXhnQZNumT PYkw== X-Gm-Message-State: AOAM533TZhHG5kjr00fma+nBaE5hrc5/cWwXbFg2kNG5xm6QEWqg87Rn 6HK6Xd4XxBCq9+06gZNToqvNYi+jiNSURE3ntFeTGyq+YeZdubrpRsoGKpIaDXSFf6fweUbPcGy AUCErK/9EA/QHki4t+nWfrv4yooLqAF44rXLbANuwRWZY8Sv2j/xq8eYJ7I3m2nhrKVqBZ7MZEQ == X-Received: by 2002:a05:6000:184d:b0:20a:8a22:cbcf with SMTP id c13-20020a056000184d00b0020a8a22cbcfmr492190wri.350.1650559560274; Thu, 21 Apr 2022 09:46:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAes0wuI7m6dfw1+VccwI3uZtQJfCY8XaDhTDhGOp2nlne33XWEGS3fvv82nBq1WXTbLg7dg== X-Received: by 2002:a05:6000:184d:b0:20a:8a22:cbcf with SMTP id c13-20020a056000184d00b0020a8a22cbcfmr492169wri.350.1650559560002; Thu, 21 Apr 2022 09:46:00 -0700 (PDT) Received: from localhost (host81-136-113-48.range81-136.btcentralplus.com. [81.136.113.48]) by smtp.gmail.com with ESMTPSA id h10-20020a05600c414a00b0038ebb6884d8sm2704204wmm.0.2022.04.21.09.45.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 09:45:59 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCHv4 0/2] Make thread_info executing and resumed state more consistent Date: Thu, 21 Apr 2022 17:45:54 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: <20220113183406.3577620-1-aburgess@redhat.com> References: <20220113183406.3577620-1-aburgess@redhat.com> 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=-6.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Thu, 21 Apr 2022 16:46:04 -0000 And I'm back on this patch again! I've rebased this onto current master and done some testing. I haven't found any regressions, but as I've said before, this change touches every target, and my testing on anything other than GNU/Linux (x86-64) is pretty thin, so I'm fully expecting this to introduce some issues - these issues _should_ be limited to assertion failures when threads are not in the expected states, I would hope there's no crashes being introduced. There's been no significant changes since v3. I have split out a little bit of the debug printing code (the new #1 patch), but the second patch is pretty much the same as v3. V3 was given a cautious OK, but I wanted to advertise this patch again in case anyone wants to object before I merge this. All feedback is welcome. Thanks, Andrew --- Andrew Burgess (2): gdb: add some additional thread status debug output gdb: make thread_info executing and resumed state more consistent gdb/aix-thread.c | 4 +- gdb/bsd-kvm.c | 2 +- gdb/bsd-uthread.c | 4 +- gdb/corelow.c | 9 +++- gdb/darwin-nat.c | 2 +- gdb/fbsd-nat.c | 4 +- gdb/fork-child.c | 3 ++ gdb/gdbthread.h | 24 ++++++--- gdb/gnu-nat.c | 13 +++-- gdb/go32-nat.c | 2 +- gdb/inf-ptrace.c | 4 +- gdb/infcmd.c | 84 +++++++++++++++++++++---------- gdb/infrun.c | 96 +++++++++++++++++++++++++++++++----- gdb/infrun.h | 26 ++++++++++ gdb/linux-nat.c | 8 +-- gdb/linux-thread-db.c | 2 +- gdb/netbsd-nat.c | 4 +- gdb/nto-procfs.c | 2 +- gdb/obsd-nat.c | 4 +- gdb/process-stratum-target.c | 4 +- gdb/procfs.c | 12 ++--- gdb/ravenscar-thread.c | 4 +- gdb/remote-sim.c | 2 +- gdb/remote.c | 21 +++++--- gdb/sol-thread.c | 4 +- gdb/thread.c | 40 +++++++++++---- gdb/tracectf.c | 3 +- gdb/tracefile-tfile.c | 2 +- gdb/windows-nat.c | 12 ++++- 29 files changed, 295 insertions(+), 106 deletions(-) -- 2.25.4