Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342535

Summary: [disassembly] Don't resolve files to an inaccessible resource
Product: [Tools] CDT Reporter: Anton Leherbauer <aleherb+eclipse>
Component: cdt-debugAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact: Ken Ryall <ken.ryall>
Severity: normal    
Priority: P3 CC: cdtdoug, pawel.1.piech
Version: 7.0   
Target Milestone: 7.0.3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Check for isAccessible() aleherb+eclipse: iplog-

Description Anton Leherbauer CLA 2011-04-12 06:34:28 EDT
Created attachment 193024 [details]
Check for isAccessible()

DisassemblyPart.insertSource() tries to resolve files to resources using ResourceLookup.selectFileForLocation() without testing whether the returned resource is accessible.  Attached patch fixes that.
Comment 1 Anton Leherbauer CLA 2011-04-12 06:36:59 EDT
Fixed in HEAD and cdt_7_0.