From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by sourceware.org (Postfix) with ESMTPS id 28B1C3858D1E for ; Tue, 25 Apr 2023 12:10:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 28B1C3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682424609; x=1713960609; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=YUKrZihM8BSmYBnEhpK2NAdJM9ugP+8qwJSOixx25cU=; b=CdJvHYt4r1dadlOZ2rYgdqzi7+Q7XLbZbkJ6/MmdgFe3Yisk9wEi9n5t LW/PsLPwT1gKSKjCoz/nd/+FNxRgO8UFZ39QT4MaWkLtqTXhJ0Vqp1tRf OVF7E5fiA3kLHwIO8mr0/6DTYecC77OTYKgvso1m05HJKPkSIh5+vAQuz MHwQVF7Yt+yRPX1j3JK0AUlRvclFZFqmxGNDKAh2Go2s3OheFkbdMD9io Jp20/kMHYFRW/tGssa9FTw5CBS5nMDzQwX61yUDgU7tMw+YFJL1Yg4miH 1Z3kFgYFrmwwBuEOyIjw4G84mKFsUKSTMepHXjyFG4D0+AvI0mlQcA2gi Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10690"; a="409694929" X-IronPort-AV: E=Sophos;i="5.99,225,1677571200"; d="scan'208";a="409694929" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2023 05:10:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10690"; a="817666844" X-IronPort-AV: E=Sophos;i="5.99,225,1677571200"; d="scan'208";a="817666844" Received: from ultl2604.iul.intel.com (HELO localhost) ([172.28.48.47]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2023 05:10:07 -0700 From: Tankut Baris Aktemur To: gdb-patches@sourceware.org Subject: [PATCH] gdbserver: update the comment of 'current_process' Date: Tue, 25 Apr 2023 14:09:48 +0200 Message-Id: <20230425120948.2604327-1-tankut.baris.aktemur@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.2 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,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Since commit commit 7f8acedeebe295fc8cc1d11ed971cbfc1942618c Author: Pedro Alves Date: Tue Apr 5 13:57:11 2022 +0100 gdbserver: track current process as well as current thread current process is tracked separately and may be non-null while the current thread is null. Update the comment of the current_process function accordingly. --- gdbserver/inferiors.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdbserver/inferiors.h b/gdbserver/inferiors.h index a0ba9906097..9a41e66cb39 100644 --- a/gdbserver/inferiors.h +++ b/gdbserver/inferiors.h @@ -92,9 +92,9 @@ pid_of (const process_info *proc) return proc->pid; } -/* Return a pointer to the process that corresponds to the current - thread (current_thread). It is an error to call this if there is - no current thread selected. */ +/* Return a pointer to the current process. Note that the current + process may be non-null while the current thread (current_thread) + is null. */ struct process_info *current_process (void); struct process_info *get_thread_process (const struct thread_info *); -- 2.25.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