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]

Re: [RFA] breakpoint.c, create_breakpoint, document that the case statement falls through.


>>>>> "Michael" == Michael Snyder <msnyder@vmware.com> writes:

Michael> No, honest, it *does* fall through!
Michael> I had to use a printf statement to convince myself.   ;-)
Michael> When the user answers "yes" to the query, it falls through.

Yeah.  Your patch is correct, or at least correct-enough.
Adding a "break" would also be correct, because sals.nelts is never 0 at
the end of this case.

Tom


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