| Summary: | Launchers should not use default connection info from IGDBJtagConstants | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Bruce Griffith <Bruce.Griffith> | ||||
| Component: | cdt-debug | Assignee: | John Cortell <john.cortell> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Ken Ryall <ken.ryall> | ||||
| Severity: | minor | ||||||
| Priority: | P3 | CC: | Bruce.Griffith, elaskavaia.cdt, john.cortell, marc.khouzam, pawel.1.piech, steve.goodrich | ||||
| Version: | 7.0 | ||||||
| Target Milestone: | 6.0.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Bruce Griffith
do you want to attach a patch? Sure, I'll post a patch. There's no rush from my end. Does this make sense to defer until after Helios? Bruce, using DEFAULT_ constants when getting an attribute from a configuration is intended to reduce coding errors. It is a widely followed practice. I'm not for changing that approach. What I can do is address the concern you have that it might end up using some other board. I think it's easy enough to choose values that will make that unlikely. Note that what you are talking about is improving the user experience where there's a *coding* error or something really unexpected has happened (say the user opens the launch configuration file and starts ripping out lines). Altering or adding code to handle those situations is questionable, IMO. E.g., one could argue that the absence of any of the expected attributes should result in an aborted launch. Providing that sort of defense in the code is onerous and excessive. I will change the defaults to ones less likely to succeed, but that's about all I think we should do. Created attachment 168126 [details]
Fix
Committed to HEAD.
FIXED *** cdt cvs genie on behalf of jcortell *** Bug 312481: Use defaults less likely to cause an unintended connection to another board. [*] IGDBJtagConstants.java 1.7 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/IGDBJtagConstants.java?root=Tools_Project&r1=1.6&r2=1.7 |