Bug 173197 - CDT fails to get AddressFactory on debugging without symbolics and crashes.
Summary: CDT fails to get AddressFactory on debugging without symbolics and crashes.
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.0 M5   Edit
Assignee: Ken Ryall CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-02-06 17:40 EST by Ling Wang CLA
Modified: 2008-06-20 10:58 EDT (History)
1 user (show)

See Also:


Attachments
my patch (2.39 KB, patch)
2007-02-06 17:42 EST, Ling Wang CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ling Wang CLA 2007-02-06 17:40:59 EST
Build ID: 3.2.1

Steps To Reproduce:
n/a


More information:
There is a case in our debugger that a CDebugTarget has no binary file associated with it, namely we just want to do pure assembly level debug without any source code view. 
But with a null binary file, CDebugTarget.getAddressFactory() would return a null AddressFactory which would cause exception in debugger. 
My solution is to ask CDI plugin to provide a default address factory.
And after discussing it in the cdt-debug-dev newsgroup, John and Mikhail approved the idea.
Attached is my patch.
Comment 1 Ling Wang CLA 2007-02-06 17:42:52 EST
Created attachment 58386 [details]
my patch

My patch based for CDT 4.0.
Comment 2 Ken Ryall CLA 2007-02-07 19:29:51 EST
Committed patch to HEAD after merging new interface into ICDITarget2.