From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22607 invoked by alias); 27 Apr 2003 20:45:12 -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 22592 invoked from network); 27 Apr 2003 20:45:09 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (62.163.169.212) by sources.redhat.com with SMTP; 27 Apr 2003 20:45:09 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6/8.12.5) with ESMTP id h3RKiwdZ000467; Sun, 27 Apr 2003 22:44:58 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6/8.12.6) with ESMTP id h3RKivAk000310; Sun, 27 Apr 2003 22:44:57 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6/8.12.6/Submit) id h3RKivcZ000307; Sun, 27 Apr 2003 22:44:57 +0200 (CEST) Date: Mon, 28 Apr 2003 00:51:00 -0000 Message-Id: <200304272044.h3RKivcZ000307@elgar.kettenis.dyndns.org> From: Mark Kettenis To: ac131313@redhat.com CC: drow@mvista.com, gdb-patches@sources.redhat.com In-reply-to: <3EA9B6AE.90001@redhat.com> (message from Andrew Cagney on Fri, 25 Apr 2003 18:29:02 -0400) 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> X-SW-Source: 2003-04/txt/msg00515.txt.bz2 Date: Fri, 25 Apr 2003 18:29:02 -0400 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 Cc: Mark Kettenis , colins@google.com, gdb-patches@sources.redhat.com Content-Type: text/plain; charset=us-ascii; format=flowed > On Fri, Apr 25, 2003 at 11:21:13PM +0200, Mark Kettenis wrote: > >> Date: Thu, 24 Apr 2003 20:27:44 -0400 >> From: Daniel Jacobowitz >> >> Hey, Mark, this sounds very much like a change you proposed. What ever >> happened to that patch? >> >> It's still happily sitting in my tree :-(. There didn't seem to be >> any consensus on whether making this change was a good idea. I still >> think it is. It's an improvement for the majority of our users, and >> it isn't making things worse for others. Do you think I should >> re-submit my patch? > > > I do, definitely. FYI, 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. Mark