From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29960 invoked by alias); 4 May 2011 21:33:13 -0000 Received: (qmail 29928 invoked by uid 22791); 4 May 2011 21:33:12 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-fx0-f41.google.com (HELO mail-fx0-f41.google.com) (209.85.161.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 May 2011 21:32:56 +0000 Received: by fxm18 with SMTP id 18so1408973fxm.0 for ; Wed, 04 May 2011 14:32:55 -0700 (PDT) Received: by 10.223.33.80 with SMTP id g16mr118372fad.125.1304544284279; Wed, 04 May 2011 14:24:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.74.3 with HTTP; Wed, 4 May 2011 14:23:43 -0700 (PDT) In-Reply-To: References: <341905.10459.qm@web112513.mail.gq1.yahoo.com> <208397.95006.qm@web112517.mail.gq1.yahoo.com> <4DA27006.1080607@codesourcery.com> <763549.92092.qm@web112506.mail.gq1.yahoo.com> <335149.24692.qm@web112515.mail.gq1.yahoo.com> <592215.58786.qm@web112508.mail.gq1.yahoo.com> <172713.29831.qm@web112503.mail.gq1.yahoo.com> From: =?UTF-8?B?UGV0ciBIbHV6w61u?= Date: Wed, 04 May 2011 21:33:00 -0000 Message-ID: Subject: Re: [PATCH] arm reversible : To: Tom Tromey Cc: paawan oza , gdb@sourceware.org, gdb-patches@sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 2011-05/txt/msg00115.txt.bz2 On 2 May 2011 16:46, Tom Tromey wrote: >>>>>> "Petr" =3D=3D Petr Hluz=C3=ADn writes: > Petr> I also recommend to define a local variable in the smalles scope > Petr> possible, however I understand that many > Petr> programmers use weak tools and knowing its definition requires more > Petr> effort than placing cursor on the variable - therefore they prefer > Petr> definitions at the start of function. > > I agree, using the smallest scope is generally preferable. > This practice makes it simpler to reason about the code. > > Petr> My IDE has a spellchecker which underlines typos. No effort require= d. > Petr> (Consider upgrading your tools.) > > I'm curious to know what IDE you use for working on GDB. The spell-checking and highlighting/displaying variable's definition (plus many other goodies) is done by "Visual Assist X" extension to Visual Studio. The initialization by 0xCCCCCCCC is done by VS compiler and C runtime. VS can be configured to use an external compiler; of course you loose some perks. I am still searching for a comfortable cross-platform IDE. I investigated the patch because I am interested reversible debugging. However I barely work on GDB. I would be mostly interested in polishing, removing rough corners and making tiny things work right. But I feel that real hackers here do not like making tools nice to use; or making things work for those who are not already experts; for people who expect their tools to know their job without requiring user's supervision, etc. > Petr> GDB commiters: please reply whether you agree with my review. (So t= hat > Petr> paawan oza does not spend effort in vain.) > > I thought it was quite good. =C2=A0Thanks for doing this. Thanks for feedback. --=20 Petr Hluzin