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: [patch 1/2] Code cleanup: remote.c *->{async,sync}*


On Mon, 01 Jul 2013 11:49:29 +0200, Yao Qi wrote:
> On 07/01/2013 02:10 AM, Jan Kratochvil wrote:
> >some code/variables are used only in async or sync mode.  Rename them
> >appropriately.  The state will be gdb_assert-ed in the next patch.
> 
> Do we really need to rename these functions?  It is necessary to add
> gdb_assert on various sync-only or async-only functions, but I don't
> think we can get any benefits from this function renaming.

A matter of opionion.  While debugging the sync and async parts I had to write
a help text along which function gets used in which mode.  Which I find the
{a,}sync_* prefies easier, moreover where already some functions/variables
contain *{a,}sync_* therein.


Jan


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