This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] again, document that case stmt fall through is intentional.


2011-02-26  Michael Snyder  <msnyder@vmware.com>

	* i386-nat.c (i386_length_and_rw_bits): Document that case
	statement is meant to fall through.

Index: i386-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-nat.c,v
retrieving revision 1.32
diff -u -p -u -p -r1.32 i386-nat.c
--- i386-nat.c	9 Jan 2011 03:08:56 -0000	1.32
+++ i386-nat.c	26 Feb 2011 22:04:02 -0000
@@ -297,6 +297,7 @@ Invalid hardware breakpoint type %d in i
       case 8:
         if (TARGET_HAS_DR_LEN_8)
  	  return (DR_LEN_8 | rw);
+	/* ELSE FALL THROUGH */
       default:
 	internal_error (__FILE__, __LINE__, _("\
 Invalid hardware breakpoint length %d in i386_length_and_rw_bits.\n"), len);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]