From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8765 invoked by alias); 28 Apr 2003 16:09:53 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8733 invoked from network); 28 Apr 2003 16:09:52 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 28 Apr 2003 16:09:52 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 823EB2B2F; Mon, 28 Apr 2003 12:09:53 -0400 (EDT) Message-ID: <3EAD5251.8030003@redhat.com> Date: Mon, 28 Apr 2003 16:18:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mark Kettenis Cc: drow@mvista.com, gdb-patches@sources.redhat.com Subject: Re: patch for printing 64-bit values in i386 registers; STABS format References: <200304242231.h3OMVqM13587@dhcp357.corp.google.com> <20030425002744.GA9492@nevyn.them.org> <200304252121.h3PLLD8I000461@elgar.kettenis.dyndns.org> <20030425213548.GA22505@nevyn.them.org> <3EA9B6AE.90001@redhat.com> <200304272044.h3RKivcZ000307@elgar.kettenis.dyndns.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00522.txt.bz2 > It's possible to fix this without adding an architecture method, or > implementing location expressions (the penny just dropped). The basic > problem is the same as for the MIPS - need a custom register area. Hence: > > - define a sequence of nameless cooked ([NUM_REGS .. > NUM_REGS+NUM_PSEUDO_REGS) range) registers ordered the way stabs would > like them > - modify the existing stabs_regnum_to_regnum to map the messed up > registers onto those values > > Ugh, Yuck! Yes it works, but isn't this a terrible hack? Oh and > using nameless cooked registers means that > > info address variable > > no longer prints the right thing if variable lives in a register. Hmm, so that's the command I can never remember. Fortunatly, I think the `unnamed' restriction is removed. They can be named as GDB should now be relying on reggroups to determine which registers are valid where. Andrew