This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [rfc] ui_out_is_mi_like_p(); Was: [patch] Add -i=mi0 as an interpreter



On Wed, 4 Jul 2001, Andrew Cagney wrote:

> > Why can't this strncmp be done in one place and then saved in some
> > variable?  If you do need to use strncmp all over the place, then I
> > can't say I care to see the magical constants "mi" and 2 every time
> > you do ;-)
> 
> The attached patch replaces:
> 
> > ! 	  if (interpreter_p && strncmp (interpreter_p, "mi", 2) == 0)
> > 
> 
> with:
> 
> 	if (ui_out_is_mi_like_p (uiout))

I'm happy now, thanks ;-)

> + /* HACK: Some code in core GDB is currently looks at the output

This sentence should be fixed.


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