bugfix: do not assume that the debugged mote is compiled from source
This commit is contained in:
parent
c81dbb6c89
commit
91e762b7bc
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: MspCodeWatcher.java,v 1.18 2009/06/15 09:44:42 fros4943 Exp $
|
* $Id: MspCodeWatcher.java,v 1.19 2009/08/20 12:52:17 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.mspmote.plugins;
|
package se.sics.cooja.mspmote.plugins;
|
||||||
|
@ -304,10 +304,12 @@ public class MspCodeWatcher extends VisPlugin {
|
||||||
private static File[] getSourceFiles(MspMote mote) {
|
private static File[] getSourceFiles(MspMote mote) {
|
||||||
String[] sourceFiles = mote.getELF().getDebug().getSourceFiles();
|
String[] sourceFiles = mote.getELF().getDebug().getSourceFiles();
|
||||||
File contikiSource = mote.getType().getContikiSourceFile();
|
File contikiSource = mote.getType().getContikiSourceFile();
|
||||||
|
if (contikiSource != null) {
|
||||||
try {
|
try {
|
||||||
contikiSource = contikiSource.getCanonicalFile();
|
contikiSource = contikiSource.getCanonicalFile();
|
||||||
} catch (IOException e1) {
|
} catch (IOException e1) {
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Verify that files exist */
|
/* Verify that files exist */
|
||||||
Vector<File> existing = new Vector<File>();
|
Vector<File> existing = new Vector<File>();
|
||||||
|
|
Loading…
Reference in a new issue