From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 116280 invoked by alias); 25 Apr 2017 20:28:33 -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 116200 invoked by uid 89); 25 Apr 2017 20:28:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=755, HERE X-HELO: mail-wm0-f43.google.com Received: from mail-wm0-f43.google.com (HELO mail-wm0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 25 Apr 2017 20:28:31 +0000 Received: by mail-wm0-f43.google.com with SMTP id u65so32793142wmu.1 for ; Tue, 25 Apr 2017 13:28:33 -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=PzJ5KNo7pDX9ezpDNXjLNYc7N1yq0gJ94EhOkzIMTzQ=; b=CnfCREUbSh8gFzNEa2mx+IG/70IV9ECGoUYiG/B/c1RHpDlZONAaAqKpYRSHrIs1Yw VgI6dFnw4BsFalCLlMV2KWRzgDLCBFdCo96T+XRKQ5Vlmeh9ST5uJX9EJznxwfi56FLu Y91bYljVT7+IZeJZLruqlnG2mKwYNcjZL3jO3POjhK8SmZnU6P+4cBgyCIPLxwXhTt72 0AidcyCkM+OP1R5iFhxi2TGA0XxEhh5tD4YzY68z+Jh70n6QZ0YE0yfK2QeKugDHMLF1 BxBfYq2m0HfRi/1G1k9qN6aHHqf93L6Y333KLlYMcW2RHBB9x8fbGQfIleqRRXvShveF rjeg== X-Gm-Message-State: AN3rC/5a0YQuBa0gB1trgAcGDK5DJOAEwre1Q22w0vr1UZ6OY+c3+9YC OTJenqGS8bp3zgrh X-Received: by 10.28.86.68 with SMTP id k65mr14339843wmb.112.1493152111495; Tue, 25 Apr 2017 13:28:31 -0700 (PDT) Received: from E107787-LIN.Home ([194.214.185.158]) by smtp.gmail.com with ESMTPSA id d17sm5635491wmi.21.2017.04.25.13.28.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Apr 2017 13:28:30 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH 0/6] Class-fy regcache in GDB Date: Tue, 25 Apr 2017 20:28:00 -0000 Message-Id: <1493152106-3246-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2017-04/txt/msg00684.txt.bz2 This patch set changes "struct regcache" to a class, that is, change all regcache_* apis to regcache class methods. I am also thinking that add a new class readonly_regcache, and regcache extends from it. However I stopped here, because they are sufficient for me to do some other unit tests. Note that this patch doesn't touch regcache in GDBserver. The patch set is tested on x86_64-linux and ppc-linux (gcc110). *** BLURB HERE *** Yao Qi (6): Change readonly_p to bool Add constructor and destructor to regcache Class-fy regcache Simplify regcache_dup Use copy ctor in regcache_dup Remove cleanup in get_return_value gdb/infcmd.c | 14 +- gdb/regcache.c | 755 ++++++++++++++++++++++++++++++++------------------------- gdb/regcache.h | 166 ++++++++++++- gdb/target.c | 5 +- 4 files changed, 595 insertions(+), 345 deletions(-) -- 1.9.1