Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Debug source lookup question

Hi Volodya, 

As far as I remember this functionality was added in attempt to
"synchronize" the external (CDT) source lookup with GDB. I haven't been
aware it has such an effect. What's the purpose of this command then?
Regarding getSourcePaths: it was added to get the source lookup
information from GDB and populate the CDT source lookup. But the idea
has never materialized. I am not aware of any future plans for it.

Regards,
Mikhail
-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Vladimir Prus
Sent: Wednesday, November 19, 2008 2:19 PM
To: CDT list.
Subject: [cdt-dev] Debug source lookup question


Hello,
I've a couple of questions about how source lookup works with CDI/GDB.

1. In CDebugTarget.initializeSourceLookup, the list of all directories
for the ILaunch's source locator is collected, and then passed to
getCDITarget().setSourcePaths, which eventually results in GDB
-environment-directory command.

Why is this done? If I understand correctly, with properly setup source
locators CDT will be able to find the actual file even if GDB reports
filename without path. So, -environment-directory command does not add
anything. In fact, in hurts, because it causes GDB to ignore full path
information in debug info when it is present.

So, what is the intended purpose of ICDISourceManagement.setSourcePaths
method?

2. As far as I can see, the ICDISourceManagement.getSourcePaths method
is not used anywhere. Why does it exist and what (future?) uses are
intended?

Thanks,
Volodya


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev

-- 
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.




Back to the top