From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8372 invoked by alias); 2 Sep 2002 20:26:50 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 8362 invoked from network); 2 Sep 2002 20:26:49 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 2 Sep 2002 20:26:49 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4514E3DE5; Mon, 2 Sep 2002 16:26:49 -0400 (EDT) Message-ID: <3D73C989.9080306@ges.redhat.com> Date: Mon, 02 Sep 2002 13:26:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christopher Faylor Cc: Elena Zannoni , gdb@sources.redhat.com Subject: Re: SEGV on display /i $pc with i386 target References: <20020829055103.GA26149@redhat.com> <86k7m9p9v9.fsf@elgar.kettenis.dyndns.org> <20020830010539.GA28337@redhat.com> <15726.59407.855138.718609@localhost.redhat.com> <20020830035319.GA30200@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00003.txt.bz2 > On Thu, Aug 29, 2002 at 11:35:43PM -0400, Elena Zannoni wrote: > >>Seems like target_map_name_to_register is the problem? Yes. It will be related to that. When updating the code, I searched for something that relied on the reverse lookup (regnum -> name) but couldn't find anything (at least nothing that affected the testsuite). > It seems to be getting the correct correspondence between (in this > case) $eip and $pc. You can see this by typing "print /x $pc" > "print /x $eip". Both translate to the same thing. > > It's only when the name itself needs to be displayed that it seems > to fall down. GDB is mapping: "$pc" -> NUM_REGS+NUM_PSEUDO_REGS+ and then failing: ... -> "$pc" because the mechanism isn't there. I'll figure out a patch. Andrew