Can anyone tell me if there is any w开发者_Python百科ay to access a standard GNU Debugger programatically through C++?
Programatically means i have to update the GUI based on the debugged values.
It sounds as if you want to update Eclipse GUI depending on what GDB observes in the inferior (being debugged) process.
That is exactly what CDT itself does.
If that is in fact your question (which is exceedingly unclear), then MI
interface is likely not the right answer. The right answer would be: look in CDT source and extend/modify it as appropriate. (FWIW, CDT itself uses MI interface to talk to GDB).
Starting from GDB 7.1, Python scripts are supported with in GDB. It could be a option to look at http://sourceware.org/gdb/wiki/PythonGdb
精彩评论