1.  
        The questions about tossim. I want to debug tos/system/sched.c  
             and find one line:  
        dbg(DBG_SCHED, ("TOSH_post: %d 0x%x\n", TOSH_sched_free, (int)tp));
        I cancel the commend of this line.
             and go to /opt/tinyos-1.x    type “make”
             then go to  /opt/tinyos-1.x/apps/blink/   type “make pc”
             Type “export dbg= sched”
             Type “build/pc/main.exe 1”
             and get some information as the following:

0: CLOCK: Setting clock interval to 231 @ 0:1:19.51623500
0: malloc data entry for clock event: 0xa05fbd0
0: Popping event for mote 0 with time 0:1:19.74180650.
0: Setting TOS_LOCAL_ADDRESS to 0
0: event_cleanup: freeing event: 0xa05fb68
0: event_total_cleanup: freeing event data: 0xa05fb90
0: event_total_cleanup: freeing event: 0xa05fb68
0: Popping event for mote 0 with time 0:1:19.74180650.
0: Setting TOS_LOCAL_ADDRESS to 0
0: CLOCK: event handled for mote 0 at 0:1:19.74180650 (902286 ticks).
0: CLOCK: Setting clock interval to 231 @ 0:1:19.74180650
  

    But I can not get any information about "TOSH_post: %d 0x%x\n"
    (TOSH_sched_free、tp) 

           
2.and another one:
       In the same place( sched.c ).
       After this line:
      dbg(DBG_SCHED, ("TOSH_post: %d 0x%x\n", TOSH_sched_free, (int)tp));

      I add one line:
          dbg(DBG_USR1, "XXXXXX: Value is %d\n", TOSH_sched_free);

      and go to cygwin under /opt/tinyos-1.x       then       type “make”
                                                             
/opt/tinyos-1.x/apps/blink/     type “make pc”
         Type “export dbg= usr1”
         Type “build/pc/main.exe 1”
       
          but not have any debug information .
          (My system is tinyos-1.x   and cygwin  )

     
     thank you~

regards,

JcJc
-- 
View this message in context: 
http://old.nabble.com/Debug-problem-tp27752909p27752909.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.


_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to