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] MI and MI2 should have identical behavior on -target-download command


 > -  if (current_interp_named_p (INTERP_MI))
 > +  if (current_interp_named_p (INTERP_MI)
 > +      || current_interp_named_p (INTERP_MI2))
 >      uiout = mi_out_new (2);
 >    else if (current_interp_named_p (INTERP_MI1))
 >      uiout = mi_out_new (1);
 > +  else if (current_interp_named_p (INTERP_MI3))
 > +    uiout = mi_out_new (3);
 >    else
 >      return;

Sorry, my comment was meant to be more general: What behaviour do you want for
miN?  where N >= 3.

Elsewhere GDB uses:

if (mi_version (uiout) < 2)

although that probably wouldn't work here.  I don't really no why GDB goes
through so many hoops with this.

-- 
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]