Community
Participate
Working Groups
Build Identifier: CDT 7.0.0 While upgrading our IDE from Galileo to Helios, I noticed a NPE crop up on starting the disassembly view. A trivial change fixed the issue - I've attached the diff. In file plugins/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/model/BreakpointsAnnotationModel.java, cBreakpoint.getFileName() returns null if it cannot find the file name, and createPositionFromSourceLine barfs if null is passed as first argument. Reproducible: Always Steps to Reproduce: 1. Open DSF disassembly view 2. Program should be stopped at a breakpoint where CDT cannot find the file name from the breakpoint. 3.
Created attachment 180835 [details] patch that shows the additional check necessary
Thanks, I fixed this and another potential NPE a little different.
*** cdt cvs genie on behalf of aleherbau *** Bug 327716 - [disassembly] NPE in BreakpointsAnnotationModel [*] BreakpointsAnnotationModel.java 1.5 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/model/BreakpointsAnnotationModel.java?root=Tools_Project&r1=1.4&r2=1.5 [*] BreakpointsAnnotationModel.java 1.4.2.1 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/model/BreakpointsAnnotationModel.java?root=Tools_Project&r1=1.4&r2=1.4.2.1