From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14095 invoked by alias); 6 Aug 2002 01:21:36 -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 14065 invoked from network); 6 Aug 2002 01:21:34 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sources.redhat.com with SMTP; 6 Aug 2002 01:21:34 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 1C617D2CBD; Mon, 5 Aug 2002 18:21:35 -0700 (PDT) Date: Mon, 05 Aug 2002 18:21:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: Question regarding bizarre ',' Message-ID: <20020806012134.GC916@gnat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2002-08/txt/msg00105.txt.bz2 This is where I show my lack of C-knowledge: in i386v4-nat.c, I read the following code: /* Mapping between the general-purpose registers in `/proc' format and GDB's register array layout. */ static int regmap[] = { EAX, ECX, EDX, EBX, UESP, EBP, ESI, EDI, EIP, EFL, CS, SS, DS, ES, FS, GS, }; I would have thought that the last ',' would cause a compilation error. But this seems to compile fine. Any reason for keeping this last comma? Thanks, -- Joel