Message ID | 20240507234233.371123-20-pedro@palves.net |
---|---|
State | New |
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C3858384642B for <patchwork@sourceware.org>; Tue, 7 May 2024 23:46:18 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by sourceware.org (Postfix) with ESMTPS id 5FACF384642B for <gdb-patches@sourceware.org>; Tue, 7 May 2024 23:43:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5FACF384642B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5FACF384642B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715125436; cv=none; b=GtWx4TxRKOQBGr3ra0LxK/heLG7fGV8TKOpZ7VaUJe93/M55DAT91BMdPhaOuOTQi/bqx0mJey1TNrCEgxjXfoSwRLjnanPrQf2wd6KWG4jsILQcTGehby7euJC5WB05l0Y3aaa5mMRvMW4IKseqwRpyMR+eTrDmvtKUSOB6thQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715125436; c=relaxed/simple; bh=TIeKuAuUunhk90+rxwf4fOEPK9xaqldt5MWChzH0SHY=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=CoZ7hmC8dkuBmgLn7ZIHVw+xnQg8sKKvZXCxLhc8zgIDkW5RlpTr0Jo24IHuvJgY3L6Izt9QBYGdbcJcUGhVSCrV+57Wrjs725W5KxzJjsPWhAjF4qU06LZeXgmQi8GHeNLXLNYlht896A5UyT39urrL64L70mOkT+YH19URv90= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-41bab13ca80so27733015e9.0 for <gdb-patches@sourceware.org>; Tue, 07 May 2024 16:43:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715125432; x=1715730232; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d/Ep9O7tFlRsNHwYVYHljoGNQOxQGG2zph+h62hPTE0=; b=A5bCvv7Akl0VTJ3jLyoIwAGAlfPkHEE8rzKw04be4FqtQhFQrUTU+b0Vdklr8OqPa+ uAHu5xsR3mGSeBbJvAXmQAF1iL+/wkkU8acqhmue6MA8rVyiAEj3EVFH3POKiTNUsm0Q uudwW7uBqppweCXXHKy+s0YoxBAnylAVi5Z3JMPhtv7MsOYtSJk0SUY/aL6PrXCqN+kB MS4fRJcs8QG9bHt8wPEV6RC0v0bFm3e9Xf63gKQzBLVN+1dHPoS6J83akTqP8nUWFoSy pigQcNFyPF/gcWbyvIO5iy9EILOnDotUNlGnAM5mH93RC019DNcLLYwEer2EswM+GpdT Spxw== X-Gm-Message-State: AOJu0Yx4c1rF+rZcd188b7KQqN4QGEZ55W4gYQc7QYLgwk5GLpPLsO5k PKZiEtDy2GRwtbdRhwu29lFeSfGPzLoaC/iAOWt7i3TSsJZSPNtNt48hDRQR X-Google-Smtp-Source: AGHT+IEbni79EsX7t6aW2Eof4ARrfsGuRNryrgD7phC89m48zsjrTxp1wJPqTQiT2hYPx2GcJ4jiWw== X-Received: by 2002:a05:600c:4713:b0:41b:fd63:1981 with SMTP id 5b1f17b1804b1-41f7268fe5bmr7467545e9.41.1715125431908; Tue, 07 May 2024 16:43:51 -0700 (PDT) Received: from localhost ([2001:8a0:f908:4900:2dd1:1a0d:2b75:dc42]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-41f88111033sm1882465e9.34.2024.05.07.16.43.51 for <gdb-patches@sourceware.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 May 2024 16:43:51 -0700 (PDT) From: Pedro Alves <pedro@palves.net> To: gdb-patches@sourceware.org Subject: [PATCH 19/34] Windows gdb: Enable "set scheduler-locking on" Date: Wed, 8 May 2024 00:42:18 +0100 Message-ID: <20240507234233.371123-20-pedro@palves.net> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240507234233.371123-1-pedro@palves.net> References: <20240507234233.371123-1-pedro@palves.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, 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 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org |
Series |
Windows non-stop mode
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 | success | Testing passed |
linaro-tcwg-bot/tcwg_gdb_build--master-arm | success | Testing passed |
linaro-tcwg-bot/tcwg_gdb_check--master-arm | success | Testing passed |
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 | success | Testing passed |
Commit Message
Pedro Alves
May 7, 2024, 11:42 p.m. UTC
Surprisingly (to me), enabling scheduler locking on Windows currently fails: (gdb) set scheduler-locking on Target 'native' cannot support this command. The backend itself does support scheduler-locking. This patch implements windows_nat_target::get_thread_control_capabilities so that the core knows schedlocking works for this target. Change-Id: Ie762d3768fd70e4ac398c8bcc03c3213bfa26a6a --- gdb/windows-nat.c | 3 +++ 1 file changed, 3 insertions(+)
Comments
>>>>> "Pedro" == Pedro Alves <pedro@palves.net> writes:
Pedro> Surprisingly (to me), enabling scheduler locking on Windows currently
Pedro> fails:
Pedro> (gdb)
Pedro> set scheduler-locking on
Pedro> Target 'native' cannot support this command.
Pedro> The backend itself does support scheduler-locking. This patch
Pedro> implements windows_nat_target::get_thread_control_capabilities so that
Pedro> the core knows schedlocking works for this target.
Oops.
This is ok once the earlier scheduler-locking patch goes in.
Approved-By: Tom Tromey <tom@tromey.com>
Tom
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index a34e230f66e..5ebf53e2816 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -261,6 +261,9 @@ struct windows_nat_target final : public x86_nat_target<inf_child_target> void close () override; + thread_control_capabilities get_thread_control_capabilities () override + { return tc_schedlock; } + void attach (const char *, int) override; bool attach_no_wait () override