From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 51470 invoked by alias); 27 Oct 2017 09:31:52 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 51443 invoked by uid 89); 27 Oct 2017 09:31:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:static., HERE X-HELO: mail-wm0-f68.google.com Received: from mail-wm0-f68.google.com (HELO mail-wm0-f68.google.com) (74.125.82.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Oct 2017 09:31:50 +0000 Received: by mail-wm0-f68.google.com with SMTP id t139so2480353wmt.1 for ; Fri, 27 Oct 2017 02:31:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=amQ5orFk+CeeVSJOLwYs4IVWa01+Qf4qwxbrO0K+T4g=; b=dDJt1B8iqvaXNWDYeqRud1f6y2vRE5STA/JPepXYEYbnUD6NOym0thqKw2/N+6joJv iCjBWsrROz/opmJn27f+g9UZmZHCxei3l7ctYUHsR8IVrWho17CSno93Gi+ri5g3cGQy ZoZJNzcQOI8JTjSyrHErFtq+ME4Yrd3+KmmiyQMKWghd0fE3sjjt/M1tpGp+dS/tJcO3 lOJcyh3+3vcyfuPHnINN0hj0vfm4wWo7dYILKtKYtK+qVogzt/9BJLTmjweWCMy6+nbD OWyT91JXFnoTyZ9/aNRwvsfAFAZDUNVr636nnbZwp5VA5BzGn9IkZoIoDhIWhzrO3Qmx oaeA== X-Gm-Message-State: AMCzsaUAdCniUq5fiEfWji69B6X9pTicAyu6RkHE34QjpWtfcP38s4je 1nSed9QtACvoXb4JXl0izwOSeA== X-Google-Smtp-Source: ABhQp+TtPNQ6k40rbfL6M90KBWqVEJ2mFzJsqcKrjA5fS0MUbHGP7Qh2xFupNb55CwS3vY+Ycq4q/A== X-Received: by 10.28.4.150 with SMTP id 144mr62787wme.79.1509096707881; Fri, 27 Oct 2017 02:31:47 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id r29sm10349378wra.71.2017.10.27.02.31.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Oct 2017 02:31:47 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH 0/8] regcache misc cleanup and refactor Date: Fri, 27 Oct 2017 09:31:00 -0000 Message-Id: <1509096702-12202-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg00839.txt.bz2 During the work of regcache rewriting, I find there are some minor cleanups and refactors can go upstream first. Each patch is quite self-contained, but they may be dependent to previous patches in this series, so I put all of them in one patch set. Rebuild GDB with every patch applied accumulatively, and regress tested on x86_64-linux. *** BLURB HERE *** Yao Qi (8): Remove regcache_descr fields sizeof_raw_register_status and sizeof_cooked_register_status Remove code wrapped by "#if 0" New method regcache::assert_regnum Remove regcache_descr::nr_raw_registers s/get_regcache_aspace (regcache)/regcache->aspace ()/g const-fy regcache::m_aspace const-fy regcache::m_readonly_p Construct readonly regcache without address space gdb/darwin-nat.c | 2 +- gdb/frame.c | 5 ++- gdb/infrun.c | 42 ++++++++++++------------- gdb/jit.c | 4 +-- gdb/linux-nat.c | 8 ++--- gdb/ppc-linux-tdep.c | 5 ++- gdb/record-full.c | 7 ++--- gdb/regcache.c | 88 +++++++++++++++++++--------------------------------- gdb/regcache.h | 20 ++++++------ 9 files changed, 75 insertions(+), 106 deletions(-) -- 1.9.1