From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5567 invoked by alias); 10 Dec 2014 17:22:48 -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 5393 invoked by uid 89); 10 Dec 2014 17:22:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e06smtp10.uk.ibm.com Received: from e06smtp10.uk.ibm.com (HELO e06smtp10.uk.ibm.com) (195.75.94.106) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 10 Dec 2014 17:22:46 +0000 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 10 Dec 2014 17:22:43 -0000 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 10 Dec 2014 17:22:40 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id B168D2190041 for ; Wed, 10 Dec 2014 17:22:10 +0000 (GMT) Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sBAHMd7K43188318 for ; Wed, 10 Dec 2014 17:22:39 GMT Received: from d06av06.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sBACJQuc005500 for ; Wed, 10 Dec 2014 07:19:26 -0500 Received: from br87z6lw.boeblingen.de.ibm.com (dyn-9-152-212-196.boeblingen.de.ibm.com [9.152.212.196]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id sBACJQP4005483 for ; Wed, 10 Dec 2014 07:19:26 -0500 From: Andreas Arnez To: gdb-patches@sourceware.org Subject: [PATCH v3 0/2] Provide useful completer for "info registers" Date: Wed, 10 Dec 2014 17:22:00 -0000 Message-Id: <1418232159-15289-1-git-send-email-arnez@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14121017-0041-0000-0000-0000026EF4EE X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00212.txt.bz2 Last version here: https://sourceware.org/ml/gdb-patches/2014-11/msg00720.html New in v3: * Omit registers with an empty name from the completion result. * Add user registers to the completion result. * Add a new GDB command "maint print user-registers". Exploit this in the test case for "info registers". Andreas Arnez (2): Add new GDB command "maint print user-registers" Provide completer for "info registers" gdb/NEWS | 3 +++ gdb/completer.c | 42 +++++++++++++++++++++++++++++++++++ gdb/completer.h | 3 +++ gdb/doc/gdb.texinfo | 12 ++++++++++ gdb/infcmd.c | 12 +++++++--- gdb/testsuite/gdb.base/completion.exp | 31 ++++++++++++++++++++++++++ gdb/user-regs.c | 30 +++++++++++++++++++++++++ 7 files changed, 130 insertions(+), 3 deletions(-) -- 1.8.4.2