From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65319 invoked by alias); 10 Jun 2017 13:59:39 -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 65298 invoked by uid 89); 10 Jun 2017 13:59:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-12.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*RU:209.85.192.196, Hx-spam-relays-external:209.85.192.196, Hx-languages-length:1725 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; Sat, 10 Jun 2017 13:59:37 +0000 Received: by mail-pf0-f196.google.com with SMTP id u1so11549309pfg.1 for ; Sat, 10 Jun 2017 06:59:41 -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:cc:subject:date:message-id; bh=z+yYni/JRnX6NZKxQHSe+ZgvPY8aBwRK/9RZ2d2/2fc=; b=kiOYrcfQ4m0oA1zY5MW/Bw2QSsAj1eo1kTy0EfWmXfQEe+Af/2PN08ibyCVO/s1jBU 2OEuN10Seua7iCo8p+AOkzGEPSby4gBRFXkzyPG3VWxSZKg9bdqGonA+zTua1f/4ramo LlUxsHfy7+O/fCVc8EhQc0/mdeprQ7pLlhDIwa8/5MtJM427qHblcEN7E5sjrfW5JIvU 0kOyzRKrVpzGHIHHnYdtN2wrcDkcVOUWyKxQAzqHaF6+8CSUyDkMPcnPHupqNXvb0dPS jWKC7pQcjNUGL8IwxZ9Yng66aAUmBaCFwz5/9gubVlFMLFwesjRORelrYbYGOGqv9mOE CFvA== X-Gm-Message-State: AODbwcBrBGGyAS5IdEertASrXm7adkWWi6QhMYqVurkF7ndv10cRqLqH 0PeAl6HS5qFi55cQHXcrJg== X-Received: by 10.98.89.155 with SMTP id k27mr40070179pfj.70.1497103179657; Sat, 10 Jun 2017 06:59:39 -0700 (PDT) Received: from localhost (g212.61-193-241.ppp.wakwak.ne.jp. [61.193.241.212]) by smtp.gmail.com with ESMTPSA id x64sm11137747pff.123.2017.06.10.06.59.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Jun 2017 06:59:39 -0700 (PDT) From: Stafford Horne To: GDB patches Cc: Stafford Horne Subject: [PATCH v2 0/4] Support for arbitrary reggroups Date: Sat, 10 Jun 2017 13:59:00 -0000 Message-Id: X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00244.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 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: Create reggroup_gdbarch_new for dynamic reggroups tdesc: handle arbitrary strings in tdesc_register_in_reggroup_p gdb/NEWS | 4 ++ gdb/doc/gdb.texinfo | 14 +++++-- gdb/infcmd.c | 8 +++- gdb/reggroups.c | 27 +++++++------ gdb/reggroups.h | 4 ++ gdb/target-descriptions.c | 74 ++++++++++++++++++------------------ gdb/testsuite/gdb.base/reggroups.c | 5 +++ gdb/testsuite/gdb.base/reggroups.exp | 63 ++++++++++++++++++++++++++++++ gdb/testsuite/gdb.xml/extra-regs.xml | 1 + gdb/testsuite/gdb.xml/tdesc-regs.exp | 3 ++ 10 files changed, 149 insertions(+), 54 deletions(-) create mode 100644 gdb/testsuite/gdb.base/reggroups.c create mode 100644 gdb/testsuite/gdb.base/reggroups.exp -- 2.9.4