From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9658 invoked by alias); 2 Jul 2008 13:39:34 -0000 Received: (qmail 9646 invoked by uid 22791); 2 Jul 2008 13:39:33 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 02 Jul 2008 13:39:03 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KE2Y0-0003Rf-Tp for ecos-discuss@sources.redhat.com; Wed, 02 Jul 2008 13:39:00 +0000 Received: from 65.111.170.175 ([65.111.170.175]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Jul 2008 13:39:00 +0000 Received: from grante by 65.111.170.175 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Jul 2008 13:39:00 +0000 To: ecos-discuss@sources.redhat.com From: Grant Edwards Date: Wed, 02 Jul 2008 13:39:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: slrn/pre0.9.9-102 (Linux) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: init_all_network_interfaces() problem? X-SW-Source: 2008-07/txt/msg00010.txt.bz2 On 2008-07-02, Yong Chen Tan wrote: >>> Sorry my knowledge on this area is very limited... By the way, >>> I really managed to run the webserver using Redboot. >> >> You may have used RedBoot to start an eCos application that >> was running the web server. >> >>> I did create and start the thread running the web server as it >>> was my only thread in the program. Btw how can I enable the >>> debug/trace output? >> >> Look at the source for defaultTraceHandler(). I don't know >> what yours looks like, but mine looks like this: >> >> void defaultTraceHandler(int level, char_t * buf) >> { >> if (buf && level <= GOAHEAD_TRACE_LEVEL) >> diag_printf('%s', buf); >> } >> >> In my code, the setting of GOAHEAD_TRACE_LEVEL determines the >> amount of debug output. >> >> If turning up the trace level, doesn't show you the problem, >> then adding a few diag_printf() calls can tell you a lot. >> >> You have debugged C programs before, haven't you? >> >>> Is there any documentations on these? >> >> Dunno. There's source code. >> > > Hi there, my defaultTraceHandler() is also the same as yours.. > Sorry to trouble you again but I have never done this type of > debugging before. Is it possible to show some sample codes on > how the debugging is done? Like where should I put this method > for debugging and what does you mean by adding diag_printf()? > Im really quite loss at the moment. Hope you can help I'm sorry, but it sounds to me like you're hopelessly over your head. Without basic C programming and debugging skills and basic embedded system development skills, no amount of mailing list postings is going help much. I think you need to take some introductory classes on C programming and software development for embedded microprocessors. -- Grant Edwards grante Yow! Make me look like at LINDA RONSTADT again!! visi.com -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss