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] Make mi_cmd_break_insert exception-safe.


 > >  > 	[gdb]
 > >  > 	* breakpoint.c (break_command_1): Return void.
 > >                                           ^^^^^^^^^^^
 > > That's a contradiction in terms, isn't it?
 > 
 > Not sure. C++ allows 
 > 
 > 	return <expression-of-type-void>;
 > 
 > I suspect modern C allows as well, so terminologically,
 > this is fine.

Yeah, a bit like a negative increase maybe.  Anyway in your patch
break_command_1 doesn't return anything, void or otherwise.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


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