Hi all,

I'm trying to use GDB in TOSSIM. I followed the instruction in the tutorial lesson 5.
For some application, e.g. Blink,  GDB works fine. But for many applications,
it doesn't work at all.


[EMAIL PROTECTED] /opt/tinyos-1.x/apps/CntToLedsAndRfm
$ export DBG=usr1,am,led

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/CntToLedsAndRfm
$ make pc
mkdir -p build/pc
    compiling CntToLedsAndRfm to a pc binary
ncc -o build/pc/main.exe -g -O0 -I%T/lib/Counters -pthread -fnesc-nido-tosnodes=
1000 -fnesc-simulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x66 -Wnesc-all -target=p
c -fnesc-cfile=build/pc/app.c -board=micasb -I%T/lib/Deluge -I%T/lib/Flash -I%T/
lib/Flash/STM25P -DDEFAULT_EEPROM_SIZE=0x100000 -DIDENT_PROGRAM_NAME=\"CntToLeds
AndRfm\" -DIDENT_USER_ID=\"me\" -DIDENT_HOSTNAME=\"gracchus\" -DIDENT_USE
R_HASH=0x93cf23a9L -DIDENT_UNIX_TIME=0x4381a7cfL -DIDENT_UID_HASH=0xf864b13cL Cn
tToLedsAndRfm.nc -lm
gcc: unrecognized option `-pthread'
C:/UCB/cygwin/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc: In function `__nesc
_nido_initialise':
C:/UCB/cygwin/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc:807: warning: passin
g arg 1 of `memset' discards qualifiers from pointer target type
    compiled CntToLedsAndRfm to build/pc/main.exe


[EMAIL PROTECTED] /opt/tinyos-1.x/apps/CntToLedsAndRfm
$ gdb build/pc/main.exe
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) run 2
Starting program: /opt/tinyos-1.x/apps/CntToLedsAndRfm/build/pc/main.exe 2
SIM: Random seed is 0

Program received signal SIGSEGV, Segmentation fault.
0x7c809f64 in KERNEL32!IsBadWritePtr ()
   from /cygdrive/c/WINDOWS/system32/kernel32.dll

(gdb) break *LedsM$Leds$yellowOn
Breakpoint 1 at 0x40cf9a: file C:/UCB/cygwin/opt/tinyos-1.x/tos/platform/pc/Leds
M.nc, line 148.
(gdb) run 2
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /opt/tinyos-1.x/apps/CntToLedsAndRfm/build/pc/main.exe 2
SIM: Random seed is 625000

Program received signal SIGSEGV, Segmentation fault.
0x7c809f64 in KERNEL32!IsBadWritePtr ()
   from /cygdrive/c/WINDOWS/system32/kernel32.dll




What would be the problem?
Thank you in advance.

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

Reply via email to