This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Question regarding bizarre ','
- From: Joel Brobecker <brobecker at gnat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 5 Aug 2002 18:21:35 -0700
- Subject: Question regarding bizarre ','
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