This is the mail archive of the gdb@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]
Other format: [Raw text]

Re: Formatting of function pointer value


 > > It is a feature, not a bug.  Why is your frontend using the
 > > command-line interface?  
 > 
 > Well, the debugger part in KDevelop was not written by me, so I don't know
 > why command-line interface, and not MI is used.
 > 
 > > DON'T do that!  Use MI nowadays, please please 
 > > please.
 > 
 > I'm sorry, but section 24 of gdb manual does not say why MI is better. Can
 > you give the reasons?

CLI output is intended for the user.  It can change with a new release, and on
the state of execution in ways which are not easy to anticipate without
reading the source code.  Provided that it still makes sense, that is not a
problem to the user but it can be to a frontend, if it is trying to parse the
output in a very precise manner.  MI has a more formal syntax and so is not as
variable.  Once it is fully developed, its output should be stable and if it
does change, some backward compatibility will probably be maintained.

Nick


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