Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-debug-dev] Reusing CDT gdb-MI-interface code

Hi,

I am using Eclipse as development platform for a DSP.

I have a question related to my debugger:
Currently, I am using gdb as static information manager (line to pc, pc to line, etc) , and the DSP simulator as the target. I have modified gdb to read the executable (ELF) and debug information (Dwarf2) and I verified that all the information I need can be retrieved from gdb. I did not implement the target support in gdb since I use it only for static information. I wonder if I can reuse CDT code that interface gdb using the MI interface, to get static information. (By 'static', I mean all the information available through gdb after loading the executable to debug, but before calling 'run' command.)

I will be happy if someone can kindly point out the classes/packages in CDT I should use/extend .

To make things clear, I will give few examples to the kind of interface I am looking for: getSourceLocationFromPc( int pc ), getPcFromSourceLocation( File file, int line ), getLocalVarsInSourceLocation( File file, int line ).

Thanks,
Haim



Back to the top