| Summary: | EDC launch imported executable causes divide by zero exception | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | David Dubrow <david.dubrow> | ||||
| Component: | cdt-debug-edc | Assignee: | Ken Ryall <ken.ryall> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Ken Ryall <ken.ryall> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | john.cortell | ||||
| Version: | 7.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
David Dubrow
My bad. Will fix asap... Created attachment 170804 [details]
Fix
Committed to HEAD.
I was just about to fix it but had the wrong ws open! You beat me to it! :) I was going to change line 304 to: final int subtaskTicks = TOTAL_TICKS / Math.max(1, buildCount); Fixed. (In reply to comment #3) > I was just about to fix it but had the wrong ws open! You beat me to it! :) > > I was going to change line 304 to: > final int subtaskTicks = TOTAL_TICKS / Math.max(1, buildCount); There's nothing to build in that case so we should just return. (In reply to comment #5) > (In reply to comment #3) > > I was just about to fix it but had the wrong ws open! You beat me to it! :) > > > > I was going to change line 304 to: > > final int subtaskTicks = TOTAL_TICKS / Math.max(1, buildCount); > > There's nothing to build in that case so we should just return. I see that. I was looking at the trees and missed the forest. :P *** cdt cvs genie on behalf of jcortell *** Bug 315396: EDC launch imported executable causes divide by zero exception [*] AbstractCLaunchDelegate2.java 1.9 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate2.java?root=Tools_Project&r1=1.8&r2=1.9 |