From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 36896 invoked by alias); 26 Dec 2017 13:48:50 -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 36797 invoked by uid 89); 26 Dec 2017 13:48:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*m:gmail, UD:xml, H*Ad:U*shorne, Hx-spam-relays-external:209.85.192.196 X-HELO: mail-pf0-f196.google.com Received: from mail-pf0-f196.google.com (HELO mail-pf0-f196.google.com) (209.85.192.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 26 Dec 2017 13:48:48 +0000 Received: by mail-pf0-f196.google.com with SMTP id j28so18726325pfk.8 for ; Tue, 26 Dec 2017 05:48:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=T3O/fNF+TRsJwjGa+8QptbiPcq9J+A16axWdmNTZ9nY=; b=gqHBYJpRL9zM4E5WiepvDMiJXr9fI3pQvSz0yjR/Dn5Sc/3xwojCYMMDKBLhZXWjdz oDd6X27Dz3FufMIQMpDOGo4fdMW9PwvJWbbL8Xhd48u4p2jUTTFBSaPgJck1f1OMotXm xuWO+shObIH8fueWwuCXfTyWBFWFFEE90qepbdD8twjoOzwxdRrihL1bO6I6jvPBcq4P y4b6g6Y9bIxK9xt4hVQGRWGUp/N5r2WJzDGZpeTJgbA+oV55YOfGA8b8Wyx40t/3C4WH Mg06/+1Ys3einiDLYR2tGY7IyLRlAFkhA2QM7cfd3C3ppm/sQqDZ1seYzsglCiO4qpKk uerQ== X-Gm-Message-State: AKGB3mLTW3r39HFPFCF2EIEfpwFuONR2gzg9ed7+h98FqyNtZqWcMzT7 WwBpq56PAEQ/OQGiCF9ry1FZ78dA X-Google-Smtp-Source: ACJfBouSKetefx/p6kaPPJ74DFj4I87c2qhX4E8WhchFr/XSlnnXRCs7wgBHtGaMFqQNtIXHwtYsYw== X-Received: by 10.101.68.131 with SMTP id l3mr5646492pgq.190.1514296126361; Tue, 26 Dec 2017 05:48:46 -0800 (PST) Received: from localhost (g121.222-224-191.ppp.wakwak.ne.jp. [222.224.191.121]) by smtp.gmail.com with ESMTPSA id c79sm62759450pfj.49.2017.12.26.05.48.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Dec 2017 05:48:45 -0800 (PST) From: Stafford Horne To: GDB patches Cc: Simon Marchi , Eli Zaretskii , Stafford Horne Subject: [PATCH v4 0/4] Support for arbitrary reggroups Date: Tue, 26 Dec 2017 13:48:00 -0000 Message-Id: <20171226134832.23497-1-shorne@gmail.com> X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00493.txt.bz2 Traditionally registers have been limited to names like "vector", "general", "system" which are hard coded in the gdbarch. This patch allows additional reggroups to be defined by the xml target description. This is necessary for architectures like OpenRISC which have many registers. This series also adds documentation on tests for the feature of listing register groups via the "info reg $reggroup" command. -Stafford -- Changes since v3 * Fixes for grammar, tests and refactorings suggsted by Eli and Simon. See diffs for detail. Changes since v2 * Fixed NEWS entry XML/descriptions typo seggested by Petro * Rebased on latest upstream/master. Changes since v1 * On 'info reg $reggroup' test and docs patch - Suggested by Eli - Fix changelog - Suggested by Simon > Added help text in 'help info registers' > Fixed 'register' typos > Fixed style of test program > Fixed copyright '2017' > Fixed code styles in expect * On 'arbitrary strings' patch - Suggested by Simon > Allow for freeing reggroups - Suggested by Eli > Add documentation for this feature Stafford Horne (4): reggroups: Add test and docs for `info reg $reggroup` feature reggroups: Convert reggroups from post_init to pre_init reggroups: Add reggroup_gdbarch_new, reggroup_find for dynamic reggroups tdesc: handle arbitrary strings in tdesc_register_in_reggroup_p gdb/NEWS | 4 ++ gdb/doc/gdb.texinfo | 16 +++-- gdb/infcmd.c | 8 ++- gdb/reggroups.c | 44 ++++++++++---- gdb/reggroups.h | 5 ++ gdb/target-descriptions.c | 58 +++++++----------- gdb/testsuite/gdb.base/reggroups.c | 5 ++ gdb/testsuite/gdb.base/reggroups.exp | 112 +++++++++++++++++++++++++++++++++++ gdb/testsuite/gdb.xml/extra-regs.xml | 1 + gdb/testsuite/gdb.xml/tdesc-regs.exp | 3 + 10 files changed, 202 insertions(+), 54 deletions(-) create mode 100644 gdb/testsuite/gdb.base/reggroups.c create mode 100644 gdb/testsuite/gdb.base/reggroups.exp -- 2.13.6