From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29999 invoked by alias); 11 Dec 2014 11:49:57 -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 29793 invoked by uid 89); 11 Dec 2014 11:49:56 -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: e06smtp16.uk.ibm.com Received: from e06smtp16.uk.ibm.com (HELO e06smtp16.uk.ibm.com) (195.75.94.112) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 11 Dec 2014 11:49:56 +0000 Received: from /spool/local by e06smtp16.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 11 Dec 2014 11:49:52 -0000 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp16.uk.ibm.com (192.168.101.146) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 11 Dec 2014 11:49:50 -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 D56952190056 for ; Thu, 11 Dec 2014 11:49:20 +0000 (GMT) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sBBBnnkL47186132 for ; Thu, 11 Dec 2014 11:49:49 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sBBBnnUu021981 for ; Thu, 11 Dec 2014 04:49:49 -0700 Received: from br87z6lw.boeblingen.de.ibm.com (dyn-9-152-212-196.boeblingen.de.ibm.com [9.152.212.196]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id sBBBnn7B021968 for ; Thu, 11 Dec 2014 04:49:49 -0700 From: Andreas Arnez To: gdb-patches@sourceware.org Subject: [PATCH v4 0/2] Provide useful completer for "info registers" Date: Thu, 11 Dec 2014 11:49:00 -0000 Message-Id: <1418298589-23120-1-git-send-email-arnez@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14121111-0025-0000-0000-000002D50100 X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00242.txt.bz2 Last version here: https://sourceware.org/ml/gdb-patches/2014-12/msg00212.html New in v4: * In maintenance_print_user_registers, no longer require target_has_registers, but get the gdbarch with get_current_arch(). * Cosmetic changes in maintenance_print_user_registers: Rename the variable "nr" to "regnum"; increment regnum in the for-loop iterator instead of the loop body. * In the documentation for the new command, enclose the first occurrence of "user registers" in @dfn{}. 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 | 24 ++++++++++++++++++++ 7 files changed, 124 insertions(+), 3 deletions(-) -- 1.8.4.2