This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: input problem for i386 target
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: umesh jaiswal <umeshcj at yahoo dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 04 Apr 2002 16:02:26 +0100
- Subject: Re: [ECOS] input problem for i386 target
- Organization: Red Hat UK Ltd.
- References: <20020404111440.11553.qmail@web13703.mail.yahoo.com>
umesh jaiswal wrote:
>
> Hi all..
>
> Thanks to jonathan for his continuous help.
>
> As I am working on i386 pc, the input problem
> from host side GDB is still there.
>
> The problem with my ecos is that I can not debug my
> aplication
> by adding some input functions like scanf() ,gets().
> whenever these functions come across debuger,it simply
> hangs for waiting input from keyboard.It can not take
> input from host side(GDB) keyboard.
> I have to kill & restart the debugging process.
> configuration have the option ..
>
> CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL -> 0
>
> CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL -> 2
>
> CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT ->
> 0
>
> but still it is not working.
> The o/p i.e. all printf comes to gdb but no input
> i.e. scanf
> goes from gdb .
>
> The same thing is working fine with synthatic linux
> target. I can
> debug my application(built for synthatic linux) having
> scanf & gets by GDB running over linux.but not
> working
> with i386 pc target.
For the synthetic target, GDB treats it as a native program. However there
is no way to get console input from GDB for a remote target. It simply
isn't in the remote protocol.
If you need input while still using GDB, you'll have to use a different
comms port.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss