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: cleanup mi error message handling


 > > because the first goes to the console for the user to see, the second to
 > > the frontend to be handled as appropriate.
 > 
 > Could you explain why the duplication here is good?  It seems to me
 > that if the front end wants to display this error to the user in the
 > console, it can do so anyway, but it shouldn't have to.  Maybe this
 > requires a version bump, I don't know.

Emacs isn't currently using this output, so I'm not speaking from experience,
but how does the front end determine which messages are for the user?

Currently most messages that are due to frontend errors go through error ()
so I guess I'm suggesting the opposite change!

 > In Eclipse, this duplication leads to a bunch of error messages that
 > pop up in the console pane which don't come from anything the user
 > did.  It's very confusing.

Just as you say if the "frontend wants to display this error to the user in
the console, it can do so anyway" isn't it equally true that if it doesn't want
to display this error, it can choose not to so?

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