Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353737 - DwafModuleScope only uses data sections to compute its low and high addresses
Summary: DwafModuleScope only uses data sections to compute its low and high addresses
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-edc (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ken Ryall CLA
QA Contact: Ken Ryall CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-03 07:34 EDT by Daniel Thomas CLA
Modified: 2012-05-22 20:38 EDT (History)
1 user (show)

See Also:


Attachments
Use both text and data sections. (1.59 KB, patch)
2011-08-03 07:35 EDT, Daniel Thomas CLA
cdtdoug: iplog+
Details | Diff
Add test on this behaviour. (4.04 KB, patch)
2011-08-12 08:17 EDT, Daniel Thomas CLA
cdtdoug: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Thomas CLA 2011-08-03 07:34:37 EDT
Build Identifier: 

DwarfModuleScope only uses data ISections to compute its start and end addresses and so ISections which are allocated but are code do not contribute. Hence code sections before the first data section are not inside the DwarfModuleScope when they should be.
Using both text and data sections fixes this.

Reproducible: Always
Comment 1 Daniel Thomas CLA 2011-08-03 07:35:03 EDT
Created attachment 200800 [details]
Use both text and data sections.
Comment 2 Daniel Thomas CLA 2011-08-12 08:17:49 EDT
Created attachment 201390 [details]
Add test on this behaviour.