Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Question regarding bizarre ','
@ 2002-08-05 18:21 Joel Brobecker
  2002-08-05 18:26 ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Joel Brobecker @ 2002-08-05 18:21 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-08-06 23:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-05 18:21 Question regarding bizarre ',' Joel Brobecker
2002-08-05 18:26 ` Daniel Jacobowitz
2002-08-05 18:39   ` Michael Snyder
2002-08-05 19:20     ` Andrew Cagney
2002-08-06 16:15       ` Kevin Buettner
2002-08-06 16:44         ` david carlton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox