Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » What's the correct way to access debug targets?((Currently getting "Discouraged access" warnings))
What's the correct way to access debug targets? [message #896237] Tue, 17 July 2012 12:44 Go to next message
Eclipse UserFriend
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.
Re: What's the correct way to access debug targets? [message #896373 is a reply to message #896237] Wed, 18 July 2012 04:25 Go to previous messageGo to next message
Eclipse UserFriend
That's a good question for the cdt dev mailing list.
Re: What's the correct way to access debug targets? [message #896410 is a reply to message #896373] Wed, 18 July 2012 06:24 Go to previous messageGo to next message
Eclipse UserFriend
Okely-dokely...

Signing up and posting Smile
Re: What's the correct way to access debug targets? [message #899934 is a reply to message #896237] Thu, 02 August 2012 23:54 Go to previous messageGo to next message
Eclipse UserFriend
hi.

im having the same problem myself...

david did you get an answer and fixed it?
Re: What's the correct way to access debug targets? [message #901286 is a reply to message #899934] Fri, 10 August 2012 11:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ben,

Unfortunately I've found nothing so far, so I'm just having to ignore the warnings for now.

My worry is that future changes to the CDT might stop my plugin from working if I'm using something that isn't really the "correct" way to do it.

However, I'm busy with other things and will put this problem aside for now. I'm sure there is an answer, but it may take some time digging into the internals of CDT to find it.
Re: What's the correct way to access debug targets? [message #902530 is a reply to message #901286] Sat, 18 August 2012 04:03 Go to previous message
Eclipse UserFriend
that is exactly what im doing.

thanks.
Previous Topic:CoreException: failed to remove resources
Next Topic:<iostream> The word '' is not correctly spelled
Goto Forum:
  


Current Time: Tue Mar 11 07:18:02 EDT 2025

Powered by FUDForum. Page generated in 0.05588 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top