From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31883 invoked by alias); 1 Aug 2012 20:49:28 -0000 Received: (qmail 31874 invoked by uid 22791); 1 Aug 2012 20:49:27 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,MSGID_FROM_MTA_HEADER,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e06smtp14.uk.ibm.com (HELO e06smtp14.uk.ibm.com) (195.75.94.110) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Aug 2012 20:49:14 +0000 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 1 Aug 2012 21:49:12 +0100 Received: from d06nrmr1806.portsmouth.uk.ibm.com (9.149.39.193) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 1 Aug 2012 21:49:11 +0100 Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q71KnBYw3018800 for ; Wed, 1 Aug 2012 21:49:11 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q71KnAcI011750 for ; Wed, 1 Aug 2012 14:49:10 -0600 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id q71Kn9jQ011712; Wed, 1 Aug 2012 14:49:09 -0600 Message-Id: <201208012049.q71Kn9jQ011712@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Wed, 01 Aug 2012 22:49:09 +0200 Subject: Re: info registers output To: palves@redhat.com (Pedro Alves) Date: Wed, 01 Aug 2012 20:49:00 -0000 From: "Ulrich Weigand" Cc: sergiodj@redhat.com (Sergio Durigan Junior), gdb-patches@sourceware.org (GDB Patches), tromey@redhat.com (Tom Tromey), jan.kratochvil@redhat.com (Jan Kratochvil) In-Reply-To: <50198F7B.1080903@redhat.com> from "Pedro Alves" at Aug 01, 2012 09:20:11 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit x-cbid: 12080120-1948-0000-0000-0000028F2931 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 X-SW-Source: 2012-08/txt/msg00043.txt.bz2 Pedro Alves wrote: > Ah. I wonder if that's been made on purpose. You get this on amd64: > > (gdb) info registers rip pc > rip 0x390f407e68 0x390f407e68 > pc: 0x390f407e68 > > GDB knows the type of "pc", and so should be able to print "pc" like "rip". > > Would that be a good idea? Would make sense to me. (In fact, there probably ought to be a single routine to print a register, called by both code paths, to avoid having the code diverge again in the future ...) Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com