From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Pierre Muller Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA 2nd try] tell in which register a register var is loaded. Date: Wed, 28 Nov 2001 11:27:00 -0000 Message-id: <3C053AB0.8050005@cygnus.com> References: <4.2.0.58.20011120180519.016c6008@ics.u-strasbg.fr> <4.2.0.58.20011128164610.00a45da0@ics.u-strasbg.fr> X-SW-Source: 2001-11/msg00540.html >>I don't think the ``$'' prefix is consistent with existing code - based mainly on a quick grep that didn't reveal any code doing this. (I don't actually have anything agains the convention though - just a separate change :-) > > > Look at tracepoint.c around line 2380 in function scope_info > and you will find lots of GDB code using printf_filtered("... in register $%s",REGISTER_NAME(...)) > > >>Otherwize, yes, a much more helpful error message. Doh! Ok, fine with me then. enjoy, Andrew From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22262 invoked by alias); 28 Nov 2001 19:27:47 -0000 Mailing-List: contact gdb-patches-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 22190 invoked from network); 28 Nov 2001 19:27:44 -0000 Received: from unknown (HELO localhost.cygnus.com) (24.114.42.213) by hostedprojects.ges.redhat.com with SMTP; 28 Nov 2001 19:27:44 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 8D2CB3DC2; Wed, 28 Nov 2001 14:27:44 -0500 (EST) Message-ID: <3C053AB0.8050005@cygnus.com> Date: Sat, 17 Nov 2001 17:22:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.3) Gecko/20011020 X-Accept-Language: en-us MIME-Version: 1.0 To: Pierre Muller Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA 2nd try] tell in which register a register var is loaded. References: <4.2.0.58.20011120180519.016c6008@ics.u-strasbg.fr> <4.2.0.58.20011128164610.00a45da0@ics.u-strasbg.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2001-11/txt/msg00325.txt.bz2 Message-ID: <20011117172200.IFzOMkPUpBzoHEjLxvlsdwd1gtII8dZUnSkUoVPyFGM@z> >>I don't think the ``$'' prefix is consistent with existing code - based mainly on a quick grep that didn't reveal any code doing this. (I don't actually have anything agains the convention though - just a separate change :-) > > > Look at tracepoint.c around line 2380 in function scope_info > and you will find lots of GDB code using printf_filtered("... in register $%s",REGISTER_NAME(...)) > > >>Otherwize, yes, a much more helpful error message. Doh! Ok, fine with me then. enjoy, Andrew