From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6108 invoked by alias); 7 Apr 2004 18:02:39 -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 6077 invoked from network); 7 Apr 2004 18:02:35 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 7 Apr 2004 18:02:35 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i37I2ZWB026456 for ; Wed, 7 Apr 2004 14:02:35 -0400 Received: from zenia.home.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i37I2Xj22075; Wed, 7 Apr 2004 14:02:33 -0400 To: Brian Ford Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] i386_stab_reg_to_regnum (4 <-> 5, ebp <-> esp) References: <8011-Fri02Apr2004094123+0300-eliz@gnu.org> <2719-Fri02Apr2004213907+0300-eliz at gnu dot org> <200404062324.i36NOeA9001063@elgar.kettenis.dyndns.org> From: Jim Blandy Date: Wed, 07 Apr 2004 18:02:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-04/txt/msg00171.txt.bz2 Brian Ford writes: > On Wed, 7 Apr 2004, Mark Kettenis wrote: > > > Brian Ford wrote: > > > >> I still propose we rename the _to_regnum functions, replacing > >> stabs and dwarf with dbx and svr4 to reduce confusion. I'll be happy > >> to make a patch :-). > > > > Please do so. > > Ok, I'm working this up and fixing all the misleading comments. I do have > a stupid style question, though. This bugs me: > > if (a) > return x; > else if (b) > return y; > else > return z; > > Can that simply be: > > if (a) > return x; > > if (b) > return y; > > return z; > > ? I can't find any mention of this in the GNU coding standards. I think either way is fine. :) GDB has a pretty extensive set of style conformance tests (gdb_ari.sh), but I don't think they care about the issue you mention.