Jump to content


Photo

Debugging enigma1


  • Please log in to reply
7 replies to this topic

#1 globis

  • Member
  • 14 posts

0
Neutral

Posted 3 September 2010 - 14:33

Hi all,


What openpli developpers use to debug enigma1 source code ?
is it possible to use gdb and how to implement it.


Regards,

Re: Debugging enigma1 #2 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 3 September 2010 - 14:37

enigma is too large for gdb to handle, so no, I haven't had much luck with it. (if I remember correctly, backtracing coredumps works however).

So it's back to good old printf's ;)
(actually shouldn't hurt the eventual quality of the code, not being able to use gdb, usually results in giving weird constructions a bit more thought, instead of just 'see whether it works')

Re: Debugging enigma1 #3 Sjaaky

  • Senior Member
  • 7,443 posts

+41
Good

Posted 3 September 2010 - 14:49

I tried to use gdb on enigma 1, but it resulted in segfaults all over the place. It was not useable in any way.

Re: Debugging enigma1 #4 globis

  • Member
  • 14 posts

0
Neutral

Posted 3 September 2010 - 15:39

Can you give more details about using printf !
how to connect dreambox with serial cable, with software to backtrace, is there any config, ...

Re: Debugging enigma1 #5 Sjaaky

  • Senior Member
  • 7,443 posts

+41
Good

Posted 3 September 2010 - 15:42

You don't need to. Just kill enigma and start it in the console (with a telnet connection). All debug output appears on stdout/stderr.

printf doesn't support backtrace ;).

Re: Debugging enigma1 #6 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 3 September 2010 - 18:50

In the c++ code put in eDebug statements.

For enigma1 - telnet commands :-

killall rcS
killall enigma
enigma>/tmp/enigma.log 2>&1 &

Cheers, pcd.

Re: Debugging enigma1 #7 globis

  • Member
  • 14 posts

0
Neutral

Posted 4 September 2010 - 14:15

Thanks, got it !

Another question:

Is it possible to recompile only enigma and flash it on the box, because "make image" or "bitbake dreambox-image" is taking so much time.

so any solution to flash enigma without rebuilding/flashing the whole root_fs ??

Re: Debugging enigma1 #8 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 4 September 2010 - 14:31

bitbake -f -c compile -b ../openembedded/packages/enigma/enigma.bb
and copy the resulting binary to the box


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users