From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Edl8F1o2vmrsLCMAWB0awg (envelope-from ) for ; Thu, 01 Oct 2026 06:30:50 -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=M3NYIes8; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 591541E04E; Thu, 01 Oct 2026 06:30:50 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (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 0ED671E051 for ; Thu, 01 Oct 2026 06:30:48 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7F9294BB5921 for ; Thu, 1 Oct 2026 10:30:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7F9294BB5921 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=M3NYIes8 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by sourceware.org (Postfix) with ESMTPS id 9167D4BB58FD for ; Thu, 1 Oct 2026 10:29:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9167D4BB58FD 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 9167D4BB58FD Authentication-Results: sourceware.org; arc=none smtp.remote-ip=192.198.163.14 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1790850550; cv=none; b=J0+CwiKc2MIIRnI8BmCQhRNEiGOtpUREzjdTJzaE/+4NIbbHvW2ifAT8QbvbtMMOYQlJ6lH8AXCX4quI5uHtdTEfHNmF5YCWCQBHzqZpcHMXxIYf5ISvOthkxuxrGC/Vhy4U7O+68VN5WCHfYxrfDVzXKjIRLDa+aBHmXan9Rts= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1790850550; c=relaxed/simple; bh=pFNwhlBKudyYjFZBzO2Ms++SdGGVet+A5teLaEmcbxY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Fsr7rfz1TajV7TnJW9ON8D2x6Qw5sYgXbIgtSvf7XlFAXGbTX9fTRKsYudgsBVh9ACyPr2LGSmHxjM1WFKcgiEfNzd7yYA0M5VKKb6nHV4gdBKR8hWd86hkMQuC+KfZzL41azY35JS7oKdEV33BOgOuqrTtq6UmDnpn5BN2dvag= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=M3NYIes8 DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9167D4BB58FD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1790850551; x=1822386551; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=pFNwhlBKudyYjFZBzO2Ms++SdGGVet+A5teLaEmcbxY=; b=M3NYIes8AScx2pGjvgyJ51MsfaWqnCcQu9asAx1EgL+CrMO+e8vcHQc6 HbyEbdfQbZRo/f5/3Zyw8cDjNlTeUfMsUnBAcz/z1MR+wib7W0Lfb+/Sw ukGkYxgqe1+UQM0a0wmjy9SPZUq8M61fMkk1vjsTVI2jNB7GEPARQfZQL TE5GckLaeKX0EFC9lDDcSC45K6s7mfy3ivWYcC83QrkwbOzwrq/BTBF1V mgFCTf4Cg88Q8hw0MowxF6i2r3ZuMZVXlIhuQwwEps+eOy+rDOcbh3lBu SodJbF5F6F/mdF238e/xbhTsmL8TpfHCWLq62F37a0UK80zl2jurMwndp Q==; X-CSE-ConnectionGUID: oZcCLTRgR/aw0EWrLmMljw== X-CSE-MsgGUID: VIGUdZEXRs6O+L/RSyztGQ== X-IronPort-AV: E=McAfee;i="6800,10657,11921"; a="91619648" X-IronPort-AV: E=Sophos;i="6.27,134,1787036400"; d="scan'208";a="91619648" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Oct 2026 03:29:10 -0700 X-CSE-ConnectionGUID: kS1wsA18RnyjcFFbd4Kyrg== X-CSE-MsgGUID: 9g/3m+EIRnqutIusxGvoFQ== X-ExtLoop1: 1 Received: from gkldtt-dev-004.igk.intel.com (HELO localhost) ([10.123.221.202]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Oct 2026 03:29:09 -0700 From: Markus Metzger To: gdb-patches@sourceware.org Subject: [RFC PATCH 7/8] gdb, infrun: inline init_thread_stepping_state() Date: Thu, 1 Oct 2026 12:28:46 +0200 Message-ID: <20261001102847.576880-8-markus.t.metzger@intel.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261001102847.576880-1-markus.t.metzger@intel.com> References: <20261001102847.576880-1-markus.t.metzger@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 There remains only a single call to init_thread_stepping_state() in proceed(). Inline it. --- gdb/infrun.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/gdb/infrun.c b/gdb/infrun.c index 19eac5c5c8e..44c41be1baa 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -459,8 +459,6 @@ set_normal_stop_state_just_attached () set_last_target_status (nullptr, minus_one_ptid, status); } -void init_thread_stepping_state (struct thread_info *tss); - static const char follow_fork_mode_child[] = "child"; static const char follow_fork_mode_parent[] = "parent"; @@ -3663,7 +3661,10 @@ proceed (CORE_ADDR addr, enum gdb_signal siggnal) pc = regcache_read_pc_protected (regcache); /* Fill in with reasonable starting values. */ - init_thread_stepping_state (cur_thr); + cur_thr->stepped_breakpoint = 0; + cur_thr->stepping_over_breakpoint = 0; + cur_thr->stepping_over_watchpoint = 0; + cur_thr->step_after_step_resume_breakpoint = 0; gdb_assert (!thread_is_in_step_over_chain (cur_thr)); @@ -4942,17 +4943,6 @@ set_step_info (thread_info *tp, const frame_info_ptr &frame, tp->control.step_stack_frame_id.to_string ().c_str ()); } -/* Clear context switchable stepping state. */ - -void -init_thread_stepping_state (struct thread_info *tss) -{ - tss->stepped_breakpoint = 0; - tss->stepping_over_breakpoint = 0; - tss->stepping_over_watchpoint = 0; - tss->step_after_step_resume_breakpoint = 0; -} - /* See infrun.h. */ void -- 2.53.0 ________________________________________ Intel Deutschland GmbH Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany Tel: +49 (89) 99143-0 www.intel.de Managing Directors: Candice Moore, Jeffrey Schneiderman, Ramachandran Sitaraman Chairperson of the Supervisory Board: Sonja Pierer Registered Seat: Munich Commercial Register B: Amtsgericht Munich HRB 186928 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.