Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

How to debug the apps runing on uclinux on Linux

Hi,Hippo.

I develop apps on Linux and run them on windows through SDK.

Then I want to debug the apps ?

what should I do?

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by zzh@Jun 1 2006, 05:15 PM

    hi,hippo.

    i develop apps on linux and run them on windows through sdk.

    then i want to debug the apps ?

    what should i do?

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15753)

    --- quote end ---

    --- Quote End ---

    There is GDB, but I don&#39;t use them. you can find .gdb file for your apps.

    I would rather debug by print.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    thank you,

    In SDK or Linux?

    Another problem: can&#39;t fork() a new thread on stratix1s10 dev. always return -1. why?

    In CGI program, I want to have two processes ,one sent the HTML and the other do control. How to realize it ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by zzh@Jun 2 2006, 11:19 AM

    thank you,

    in sdk or linux?

    another problem: can&#39;t fork() a new thread on stratix1s10 dev. always return -1. why?

    in cgi program, i want to have two processes ,one sent the html and the other do control. how to realize it ?

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15781)

    --- quote end ---

    --- Quote End ---

    There is no fork() because Nios2 does not have mmu yet, use vfork() instead on uClinux. Read FAQ on www.ucdot.org .

    You can find nios2-elf-gdb and gdb-server on Nios2 CDs for windows and linux platform.