From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 6XUaGnUq52ncqy4AWB0awg (envelope-from ) for ; Tue, 21 Apr 2026 03:42:45 -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=lxglc/uN; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 54F3C1E067; Tue, 21 Apr 2026 03:42:45 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.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,RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.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 421641E067 for ; Tue, 21 Apr 2026 03:42:43 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 6EA674BA9003 for ; Tue, 21 Apr 2026 07:42:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6EA674BA9003 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=lxglc/uN Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by sourceware.org (Postfix) with ESMTPS id 6C3944BA23F3 for ; Tue, 21 Apr 2026 07:42:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6C3944BA23F3 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 6C3944BA23F3 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.14 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776757331; cv=none; b=Umoowl5S9xE92msqwf+HFYtTYiBH0XsPeAfUvKwfpQUPWyMeyLe+/P+iXbZM8Ijs4PvAPUsOWhA2uDDAlSQHzV1PjXNwSzJSSFSRzkZvdJpkzsEUz+IuelCOWj+0moVJ4OoXEq8VPFlT/AllaiLDeAXmrK9bASYz4h7JaK7aaIU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776757331; c=relaxed/simple; bh=h+lHWxGQE9Rx4J2coXIINUekfi9oBk5ADfCZInEWEDw=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=bTPXOF/jGF40rY3qPdkFn0VgjYyv2vSQnqPVV1AHsKxgKxif3kEjM0WFwIbv+GuWLF+pT4wv6b7aHL/8khTkl6v4wFTGOcivYdQ/1q+crQNWB33OUa6irqBG1R1GxDeGt7kw2pHdGduRpAYaNvM0MM2n5w7yPmDj88mAWrkzaRw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C3944BA23F3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1776757331; x=1808293331; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=h+lHWxGQE9Rx4J2coXIINUekfi9oBk5ADfCZInEWEDw=; b=lxglc/uNsydbReCO0zpS4BYW3tCMreV2MbB4b6OQXpJQqBVjEJZX3kKQ kMgk9bP37Fl2tUrkd+VNB2sCGZgGiUz0mAQ+D5EB1gRT4S3JXbr0M8vNV +WP1VxeXAU0QWsb6/3Fzz10PwIcSwxv6Ccu3QenWeuNAhEkleJ7mJ1n8s bmn6G1v7OaXqMDvNB8Hfw386GhU1wjhS5AwF17Rd0dTVQotk5pHRt+V0Z 0IG6eJkZuOQg4KQfEG3rD3+YHe5CwpvDK5B3TvPRzfgCQFOpK40AwOaKo MS1lfblv/5ZjoR4QkS5vkJq8m8Dat3oGubdsba5yXx2gsbXWyH78EwAnr w==; X-CSE-ConnectionGUID: dniPeMqsSDm2B8VsYwih6w== X-CSE-MsgGUID: Bj0FiwlGQ1Wc9ucRcbX2tQ== X-IronPort-AV: E=McAfee;i="6800,10657,11762"; a="77755376" X-IronPort-AV: E=Sophos;i="6.23,191,1770624000"; d="scan'208";a="77755376" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2026 00:42:10 -0700 X-CSE-ConnectionGUID: HxhtsYxhRymY4IOhEbABHQ== X-CSE-MsgGUID: aFNfcNc+QSaS8r94S9ZG3Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,191,1770624000"; d="scan'208";a="229297220" Received: from gkldtt-dev-004.igk.intel.com (HELO localhost) ([10.123.221.202]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2026 00:42:09 -0700 From: Tankut Baris Aktemur To: gdb-patches@sourceware.org Subject: [pushed] gdb: remove braces in a for-loop Date: Tue, 21 Apr 2026 09:41:58 +0200 Message-Id: <20260421074158.3375916-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-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 Remove the braces of the body of a for-loop and reduce indentation. Patch can be viewed clearer with 'git show -w'. --- gdb/remote.c | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/gdb/remote.c b/gdb/remote.c index c67ef5de344..1455838c2cf 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -4616,28 +4616,26 @@ remote_target::update_thread_list () /* And now add threads we don't know about yet to our list. */ for (thread_item &item : context.items) - { - if (item.ptid != null_ptid) - { - /* In non-stop mode, we assume new found threads are - running until proven otherwise with a stop reply. In - all-stop, we can only get here if all threads are - stopped. */ - thread_int_state internal_state = (target_is_non_stop_p () - ? THREAD_INT_RUNNING - : THREAD_INT_STOPPED); - - remote_notice_new_inferior (item.ptid, internal_state); - - thread_info *tp = this->find_thread (item.ptid); - remote_thread_info *info = get_remote_thread_info (tp); - info->core = item.core; - info->extra = std::move (item.extra); - info->name = std::move (item.name); - info->id_str = std::move (item.id_str); - info->thread_handle = std::move (item.thread_handle); - } - } + if (item.ptid != null_ptid) + { + /* In non-stop mode, we assume new found threads are + running until proven otherwise with a stop reply. In + all-stop, we can only get here if all threads are + stopped. */ + thread_int_state internal_state = (target_is_non_stop_p () + ? THREAD_INT_RUNNING + : THREAD_INT_STOPPED); + + remote_notice_new_inferior (item.ptid, internal_state); + + thread_info *tp = this->find_thread (item.ptid); + remote_thread_info *info = get_remote_thread_info (tp); + info->core = item.core; + info->extra = std::move (item.extra); + info->name = std::move (item.name); + info->id_str = std::move (item.id_str); + info->thread_handle = std::move (item.thread_handle); + } } if (!got_list) -- 2.34.1 Intel Deutschland GmbH Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany Tel: +49 89 991 430, www.intel.de Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell Chairperson of the Supervisory Board: Nicole Lau Registered Seat: Munich Commercial Register: Amtsgericht Muenchen HRB 186928