Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

How to debug the apps runing on uclinux on Linux

Altera_Forum
Honored Contributor II
1,733 Views

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?
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
808 Views

 

--- 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.
0 Kudos
Altera_Forum
Honored Contributor II
808 Views

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 ?
0 Kudos
Altera_Forum
Honored Contributor II
808 Views

 

--- 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.
0 Kudos
Altera_Forum
Honored Contributor II
808 Views

Hippo, 

 

Can you tell me which 2 CDs are they ?
0 Kudos
Altera_Forum
Honored Contributor II
808 Views

 

--- Quote Start ---  

originally posted by albertyong88@Dec 20 2006, 01:23 AM 

hippo, 

 

can you tell me which 2 cds are they ? 

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

--- quote end ---  

 

--- Quote End ---  

 

You can find them if you install the Altera design suit, 

http://nioswiki.jot.com/wikihome/operating...quartusforlinux (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/quartusforlinux)
0 Kudos
Reply