This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: debug TCP/IP?
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: ÕÅ ÁÁ <johnsonest at hotmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 15 May 2003 09:23:16 +0200
- Subject: Re: [ECOS] debug TCP/IP?
- References: <Law14-F29nlT2NqFJ3s0001bbf3@hotmail.com>
On Thu, May 15, 2003 at 01:58:30PM +0800, ÕÅ ÁÁ wrote:
> hi,every one.
> How can I debug the ecos TCP/IP stack? not just test it.because if i
> test failed,how can i trace and resolve the problem?
>
> BRs/johnsonest
There is nothing magic about the TCP/IP stack. Debug it like any other
code. Put in diag_printfs, use breakpoints, etc.
Its a good idea to use the serial port for gdb. The ethernet driver
layer and bellow is shared by both the 'applications' TCP/IP stack and
Redboots tcp/ip stack. Putting breakpoints or diag_printf's there will
cause you problems.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss