From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UF9MBJGqBWbKwhkAWB0awg (envelope-from ) for ; Thu, 28 Mar 2024 13:36:17 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=MryFQMAH; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 09E2A1E0C0; Thu, 28 Mar 2024 13:36:17 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 4F4181E030 for ; Thu, 28 Mar 2024 13:36:14 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E07453858D3C for ; Thu, 28 Mar 2024 17:36:13 +0000 (GMT) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by sourceware.org (Postfix) with ESMTPS id 92C1F3858D1E for ; Thu, 28 Mar 2024 17:35:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 92C1F3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 92C1F3858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711647352; cv=none; b=Eb08GjBNyehswpATfcJpjtIiAnH3ErILGrpfhyUmEimc+lSvL871wIVVCXh5c/WfqqPnKkC/nghCV4exh9Sx0Q8wEPi2cyzjsh93OMfrkxvlG0VX/p1jY5Bn1R7k+C6UOUtASMmJMlsZoIQOrnKgOn2WUX5FP9MezB1vMgb9g1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711647352; c=relaxed/simple; bh=85c9RTC2COC2s1yTljgV9U2qD/QSrFu5Xq5Sd5sZo4w=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=K17j/ujh/P5RKWnm+DWrxOiB3N/tQGzb72aNJ1nKhooVMqSSh73jSQGPkS1ywcCG3mWbDqFmp1h5ycWGJ4OMa7p/RzOyV/ikPpdwtlTtXCzHmrQlHmq3QhzxYzfYfHR0fNJPAQ0cEyo+ZCz1bbbIDZYgwWqn0tQbcx8j9bh152w= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711647350; x=1743183350; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=85c9RTC2COC2s1yTljgV9U2qD/QSrFu5Xq5Sd5sZo4w=; b=MryFQMAHnD3/fPh88YDbBuQSQwBvFBj581fbivqygbPhbZx+XcT9U1sI YaDVmivE7ailfIKadv+GFrLbEkfWAgWqJdYUNIfja7wedVg/oGGRljRiW k9/GKHd8UVvfwTPgY8EOZ+SSwPkmwFDP+QXePFK+yEhxkc4UKyAbH05Cg VZDAJ0hhdybP23y8APxt+5Xs/kbJ9ij+YALzT/XSt9zj5p8754gW49qXR OytoUJW+/hTiu77oo0TRpr/z7zC3WOaEYzDCXinKiqtd+qxPKzrnCSF3B 1d6l1KI+7qZx/eIQhi1dHRT08rQY4xUvqAp89H57+89SsYU2lNLj/ODll g==; X-CSE-ConnectionGUID: p5uWtsmOQQmemDDmqVsxew== X-CSE-MsgGUID: FRwLWL2TRL6+6KF0Ibyr4w== X-IronPort-AV: E=McAfee;i="6600,9927,11027"; a="29302295" X-IronPort-AV: E=Sophos;i="6.07,162,1708416000"; d="scan'208";a="29302295" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2024 10:35:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,162,1708416000"; d="scan'208";a="17354435" Received: from gkldtt-dev-004.igk.intel.com (HELO localhost) ([10.123.221.202]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2024 10:35:48 -0700 From: Tankut Baris Aktemur To: gdb-patches@sourceware.org Subject: [PATCH 1/3] gdb: print 'stop_requested' in infrun_debug_show_threads Date: Thu, 28 Mar 2024 18:35:35 +0100 Message-Id: <20240328173537.2679010-1-tankut.baris.aktemur@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.6 required=5.0 tests=AC_FROM_MANY_DOTS, BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, 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 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Print the 'stop_requested' field of a thread in the debug logs. The field may be useful when debugging GDB's infrun. --- gdb/infrun.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/infrun.h b/gdb/infrun.h index 6339fd997e1..57a49da51fe 100644 --- a/gdb/infrun.h +++ b/gdb/infrun.h @@ -67,10 +67,11 @@ infrun_debug_show_threads (const char *title, ThreadRange threads) infrun_debug_printf ("%s:", title); for (thread_info *thread : threads) infrun_debug_printf (" thread %s, executing = %d, resumed = %d, " - "state = %s", + "stop_requested = %d, state = %s", thread->ptid.to_string ().c_str (), thread->executing (), thread->resumed (), + thread->stop_requested, thread_state_string (thread->state)); } } -- 2.34.1 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928