From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20568 invoked by alias); 22 Mar 2010 18:14:45 -0000 Received: (qmail 20558 invoked by uid 22791); 22 Mar 2010 18:14:44 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Mar 2010 18:14:36 +0000 Received: from hpaq13.eem.corp.google.com (hpaq13.eem.corp.google.com [10.3.21.13]) by smtp-out.google.com with ESMTP id o2MIEWPK003665 for ; Mon, 22 Mar 2010 19:14:32 +0100 Received: from wya21 (wya21.prod.google.com [10.241.225.21]) by hpaq13.eem.corp.google.com with ESMTP id o2MIEVrw014267 for ; Mon, 22 Mar 2010 19:14:31 +0100 Received: by wya21 with SMTP id 21so2474903wya.39 for ; Mon, 22 Mar 2010 11:14:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.163.207 with SMTP id a57mr386006wel.220.1269281671285; Mon, 22 Mar 2010 11:14:31 -0700 (PDT) In-Reply-To: <83sk7sgrm3.fsf@gnu.org> References: <4B9FCA21.9020904@vmware.com> <20100316200424.GA29097@caradoc.them.org> <201003221433.o2MEXt0J031478@glazunov.sibelius.xs4all.nl> <20100322145332.GA3061@caradoc.them.org> <83sk7sgrm3.fsf@gnu.org> Date: Mon, 22 Mar 2010 18:14:00 -0000 Message-ID: Subject: Re: [RFA 3/5] Prec: x86 segment register support: target From: Doug Evans To: Eli Zaretskii Cc: Daniel Jacobowitz , mark.kettenis@xs4all.nl, teawater@gmail.com, msnyder@vmware.com, gdb-patches@sourceware.org, hjl.tools@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes 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: 2010-03/txt/msg00767.txt.bz2 On Mon, Mar 22, 2010 at 11:04 AM, Eli Zaretskii wrote: >> Date: Mon, 22 Mar 2010 10:53:35 -0400 >> From: Daniel Jacobowitz >> Cc: teawater@gmail.com, msnyder@vmware.com, gdb-patches@sourceware.org, = =A0 =A0 =A0 hjl.tools@gmail.com >> >> On Mon, Mar 22, 2010 at 03:33:55PM +0100, Mark Kettenis wrote: >> > Sorry, but I don't think adding these xx_base registers is a good >> > idea. =A0They are not acrhitected registers so they don't beling in the >> > list of registers. >> >> What do you suggest instead? > > Would a separate command fit the bill? =A0(The DJGPP build already has > something similar, see "info dos ldt" and its description in the > manual with an example of how to use it to display the DS segment base > address and limit.) I'd have the regs in a separate info command (out of "info regs"), there's more than just base, there's the limit and flags regs too, and having them would really reduce the S/N ratio of "info reg", but having $gs_base, et.al. usable in expressions is really useful (and long overdue). Either that or make "gs:" as an address work - you'd still want to be able to fold it to a "flat" address though.