From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id KMs3B6M0YWfkLB4AWB0awg (envelope-from ) for ; Tue, 17 Dec 2024 03:21:55 -0500 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=i+lAUtCj; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 1A6BF1E097; Tue, 17 Dec 2024 03:21:55 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) 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=unavailable autolearn_force=no version=4.0.0 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 984881E05C for ; Tue, 17 Dec 2024 03:21:54 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4D47D3858404 for ; Tue, 17 Dec 2024 08:21:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D47D3858404 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=i+lAUtCj Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by sourceware.org (Postfix) with ESMTPS id 6121C3858D20 for ; Tue, 17 Dec 2024 08:18:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6121C3858D20 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 6121C3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.16 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734423530; cv=none; b=QppM1Wf07NRgHhIYYz+cBN/z2WouqKtSYhSLEWihyeloWcz17D8ifcCHh9LGrIWpcYL1iKU7RO+rXE/oBrBRyvHy67CewOIgmv5pxxur1CLPVoGZUMi5hBWuzD7luDilmbMUkeC0t7ELQRUlBdkSfCJakOkvPcGrXRjouOMB0jM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734423530; c=relaxed/simple; bh=zNsMDTNxclXzxuYfp3s4nfVOVrMacjB9vUqLpFVXJs0=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=Op3df6X8rCAG4nITWKjhenfpDJ6DAmERovTxJk9TA67mF00siRfoo7qWFnx4ecDgjPSVFra/LO8cJEH52RHqPovYNQzXFpGHKqzXuKLORh1Thefzyiy6/nK3Qf1RTI9Wp3TJoyPUk5c5TtGf9EwLDz1pyGMq2sG45rBMcZxrevE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6121C3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1734423531; x=1765959531; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zNsMDTNxclXzxuYfp3s4nfVOVrMacjB9vUqLpFVXJs0=; b=i+lAUtCjElRonuH9fndj1fd/17x+RSBzIjeSfxlUvpo5k4D4/ELqzN5w fZSl8BzwRpeJ0o5fFvkYwy5DOFYEvtp/plhNgXhpDL3WMhPVxB2M1x1Vs aN6p2OGu/SL0YqvuZFsYNAHMCoO0UGSghyOrwDCQtQY77bjzsqW3mT/A+ hce41QMT9rv4OkQwRZMes4hxdRY3mKS8rR0u9H1BSw9DQ75oyhXQUIOqV Dfx384UxRSLa3kNN5X9/WYoWSnVJ0JQrnY/KfAs3VO+l3UR68xhCClkU8 GNEcBBxv2HzpFt3hAXjLNQ2EEOb7RKVyhx90DA1uGm4gFwAFZ6C9bObEM g==; X-CSE-ConnectionGUID: UHAnlTmnRICTKbdXMp9WPQ== X-CSE-MsgGUID: 1w71tkppR5as5QlGkSmxLQ== X-IronPort-AV: E=McAfee;i="6700,10204,11288"; a="22427806" X-IronPort-AV: E=Sophos;i="6.12,241,1728975600"; d="scan'208";a="22427806" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Dec 2024 00:18:49 -0800 X-CSE-ConnectionGUID: SnoOEaL/QUeRJBq/BMkqCg== X-CSE-MsgGUID: SqECbIoNR4We5nr9eZEElQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,241,1728975600"; d="scan'208";a="97346312" Received: from gkldtt-dev-004.igk.intel.com (HELO localhost) ([10.123.221.202]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Dec 2024 00:18:48 -0800 From: Tankut Baris Aktemur To: gdb-patches@sourceware.org Cc: simon.marchi@efficios.com Subject: [PUSHED 0/8] Some gdbserver regcache cleanup Date: Tue, 17 Dec 2024 09:18:22 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: 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 Hello, I had previously submitted a series for gdbserver's regcache: https://inbox.sourceware.org/gdb-patches/cover.1677582744.git.tankut.baris.aktemur@intel.com/ Simon had reviewed the series and approved some of the patches. I rebased those patches and then regression-tested on Linux X86-64 using the default, native-gdbserver, and native-extended-gdbserver board files, and then pushed. Hereby I send the pushed versions. Thanks. Baris Tankut Baris Aktemur (8): gdbserver: by-pass regcache to access tdesc only gdbserver: boolify and defaultize the 'fetch' parameter of get_thread_regcache gdbserver: convert regcache_cpy into regcache::copy_from gdbserver: check for nullptr condition in regcache::get_register_status gdbserver: boolify regcache fields gdbserver: rename regcache's registers_valid to registers_fetched gdbsupport: fix a typo in a comment in common-regcache.h gdbserver: return tracked register status in regcache_raw_read_unsigned gdbserver/linux-aarch32-low.cc | 2 +- gdbserver/linux-low.cc | 18 +++++++-------- gdbserver/linux-ppc-low.cc | 12 ++++------ gdbserver/linux-s390-low.cc | 14 ++++-------- gdbserver/linux-x86-low.cc | 9 +++----- gdbserver/mem-break.cc | 4 ++-- gdbserver/proc-service.cc | 2 +- gdbserver/regcache.cc | 41 ++++++++++++++++++---------------- gdbserver/regcache.h | 22 +++++++++--------- gdbserver/remote-utils.cc | 2 +- gdbserver/server.cc | 4 ++-- gdbserver/tracepoint.cc | 6 ++--- gdbserver/win32-low.cc | 2 +- gdbsupport/common-regcache.h | 8 +++---- 14 files changed, 69 insertions(+), 77 deletions(-) -- 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: Sean Fennelly, Jeffrey Schneiderman, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928