开发者

Accessing GDB through Eclipse CDT

开发者 https://www.devze.com 2023-03-29 12:20 出处:网络
Can anyone tell me if there isany w开发者_Python百科ay to access a standard GNU Debugger programatically through C++?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消