|What's the correct way to access debug targets? [message #896237]
||Tue, 17 July 2012 16:44
| David Paterson
Registered: September 2010
I'm writing a debug plugin in which I want to be able to connect back to a source file from the displayed data, i.e. taking a displayed value as an address, then opening the relevant source file and jumping to the correct line.|
I can get an IDebugTarget object from the launch manager, but this type of object doesn't have any methods (as far as I can see) to convert my address to a file path and line number reference.
I'm converting it to a CDebugTarget, and using that to access an ICDITarget, and between the two of these I have the ability to create an IAddress object via getAddressFactory().createAddress, and use that for getAddressForSource().
However, the use of CDebugTarget is giving warnings :-
Discouraged access: The type CDebugTarget is not accessible due to restriction on required library...
Although my code works correctly, I'd prefer not to have these warnings, so if anyone can advise on an alternative I'd be very grateful.
Powered by FUDForum
. Page generated in 0.01746 seconds