AW: [Tinyos-help] Debugging in TMote Sky with GDB and JTAG in Windows

Tiago Camilo tandre at dei.uc.pt
Thu Mar 1 02:40:25 PST 2007


Hi Ole,
Thanks for your help in this matter, but iam still with the same 
problem  :(.
Can you give me the information regarding the versions of your compiler 
and cygwin.. i can see any other source of problems... :(
Thanks in advance,
Tiago

Ole Bischoff wrote:
> Hy Tiago,
>
> when I debugged the TMote Sky with GDB (successfully) I used "make tmote
> debug", instead of "PFLAGS += -g" and "make telosb", to create the binary
> with debugging symbols.
> A full list of commands for debugging the example "CountLeds" can be found
> in:
> http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-August/018795
> .html
>
> Hope this helps,
> OLE
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: tinyos-help-bounces at Millennium.Berkeley.EDU
> [mailto:tinyos-help-bounces at Millennium.Berkeley.EDU] Im Auftrag von Tiago
> Camilo
> Gesendet: Freitag, 23. Februar 2007 22:06
> An: tinyos-help at Millennium.Berkeley.EDU
> Betreff: [Tinyos-help] Debugging in TMote Sky with GDB and JTAG in Windows
>
> Hey List,
>
> Does anyone here have successful debug in TMote Sky with GDB and JTAG in 
> Windows?
> I went throughout the procedures as explained in 
> http://www.moteiv.com/community/Debugging_Tmote_Sky_with_GDB
> and also
> http://www.eecs.harvard.edu/~mdw/proj/tmote-gdb/
> Now I have everything working fine except that the gdb breakpoints are 
> now working correctly. When i set a breakpoint using gdb or ddd, in a 
> specific line (e.x. break sourceM:20) that line does not correspond to 
> the run time line, moreover I even got errors like "No line 89 in file 
> "sourceM.nc" when the program have 100 lines.
> If i set a break point in a function (e.x. break 'sourceM$Function) it 
> will mark a new line that do not correspond to the function line in the 
> file. By running the debugger it stops in another line, not the one set 
> by me.
> When i type
> info source
> it gives me something like this:
> ....
> Compiled with unknown debugging format
> Does not include preprocessor macro info
>
> So my guess is that something wrong in how the program is compiled and 
> build the source files. I used several options in compile time, but all 
> bring me the same result (e.x. -g, -g3, -O1...)
> Does anyone have any idea? Where do i find some solutions for such a 
> problem?
> How do i compile my application to have debug support from gdb?
>
> Thanks in advance,
> Tiago Camilo
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>   



More information about the Tinyos-help mailing list