Updated to allow MSPSim emulated nodes without debug information
This commit is contained in:
parent
f61ab7c061
commit
cb1f206c4f
1 changed files with 5 additions and 1 deletions
|
@ -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: MspMoteType.java,v 1.37 2010/10/04 22:33:58 nifi Exp $
|
* $Id: MspMoteType.java,v 1.38 2010/10/25 14:13:38 nifi Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.mspmote;
|
package se.sics.cooja.mspmote;
|
||||||
|
@ -400,6 +400,10 @@ public abstract class MspMoteType implements MoteType {
|
||||||
|
|
||||||
/* Fetch all executable addresses */
|
/* Fetch all executable addresses */
|
||||||
ArrayList<Integer> addresses = elf.getDebug().getExecutableAddresses();
|
ArrayList<Integer> addresses = elf.getDebug().getExecutableAddresses();
|
||||||
|
if (addresses == null) {
|
||||||
|
// No debug information is available
|
||||||
|
return fileToLineHash;
|
||||||
|
}
|
||||||
|
|
||||||
for (int address: addresses) {
|
for (int address: addresses) {
|
||||||
DebugInfo info = elf.getDebugInfo(address);
|
DebugInfo info = elf.getDebugInfo(address);
|
||||||
|
|
Loading…
Add table
Reference in a new issue