Tiny Core Extensions > TCE 2.x

Watcher, the cpu/mem/swap/battery meter

<< < (3/3)

curaga:
Not really. You should probably try to build with debug symbols (-g) and run under gdb.

There are good beginner instructions for this on the Pidgin site if you haven't used gdb before.

mavrothal:
Tried it but I just get "no stack" ??? when I try to exec-file either "watcher -bat" or "watcher --args -bat". So I do not really know if I really  run "watcher -bat" :(

curaga:
gdb ./watcher
run -bat -otherargs
bt full

mavrothal:

--- Quote from: curaga on April 18, 2010, 06:33:11 AM ---gdb ./watcher
run -bat -otherargs
bt full

--- End quote ---

Now this is something...
Run as above runs fine! No faults or anything.
run as ./watcher -bat -> segfault ???
change permissions, directory etc and run directly -> still segfault

bt full only reports

--- Code: ---#0  0xb761ae68 in ___newselect_nocancel () from /lib/libc.so.6
No symbol table info available.
#1  0xb77df8fb in fl_wait () from /usr/lib/libfltk.so.1.1
No symbol table info available.
#2  0xb77a0bfd in Fl::wait () from /usr/lib/libfltk.so.1.1
No symbol table info available.
#3  0xb77a0cab in Fl::run () from /usr/lib/libfltk.so.1.1
No symbol table info available.
#4  0x08048df6 in main (argc=3, argv=0xbfd80a84) at watcher.cxx:223
        w = 164
        window = (struct Fl_Window *) 0x983d0a8
        box = (struct Fl_Box *) 0x983d130

--- End code ---

 ???

mavrothal:
Oh, well...
I gutted watcher and turned it to xo_bat ;D, and this works fine.
Is just a battery monitor for the OLPC XO-1. Binary and source here

Navigation

[0] Message Index

[*] Previous page

Go to full version