| Summary: | [disassembly] debug context is not per workbench window | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Patrick Chuong <pchuong> | ||||||
| Component: | cdt-debug-dsf | Assignee: | Patrick Chuong <pchuong> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Pawel Piech <pawel.1.piech> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | aleherb+eclipse, cdtdoug | ||||||
| Version: | 7.0 | Flags: | pchuong:
iplog-
|
||||||
| Target Milestone: | 8.0 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Patrick Chuong
Created attachment 183126 [details]
patch - retrieves debug context per workbench window
Right, I tend to forget that there can be multiple windows. I think we should also register the IDebugContextListener with the window-specific context service. Created attachment 183228 [details]
new patch - retrives debug context and register listener per window service
I intended to change the listener when I submit a view pin&clone patch to CDT, I guess this is a good fix for now. I'll have to change the addDebugListener to provide the view IDs later.
I also made an addition nullpointer fix in this patch, getTopAddress() causes a nullpointer when the view is close.
I have commit the patch to head. *** cdt cvs genie on behalf of pchuong *** Bug 330259 - [disassembly] debug context is not per workbench window [*] DisassemblyPart.java 1.40 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java?root=Tools_Project&r1=1.39&r2=1.40 |