This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: console Vs GUI gdb on i386 target
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: Pete Barrie <peter at cis dot strath dot ac dot uk>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 13 Feb 2002 14:36:05 +0000
- Subject: Re: [ECOS] console Vs GUI gdb on i386 target
- Organization: Red Hat UK Ltd.
- References: <5.1.0.14.0.20020211204351.00abff30@pophost.cs.strath.ac.uk>
Pete Barrie wrote:
>
> Running PC-host, Win2000, Cygwin and i386-elf-gdb
> to PC target.
>
> I've spent some time with docs and site search but I'm
> not clear about the following:
>
> Q1. On gdb console version standard output from tutorial programs
> hello.c , twothreads.c, etc comes back to the gdb console. Good.
> But...if I'm running Insight GUI where can I see the
> output? I've checked manuals but I'm not
> clear on this.
View->Console
> Q2. Can I redirect output to other display's on host or PC video?
>
> CYGSEM_HAL_I386_PC_DIAG_SCREEN (Output to PC screen) _is_ enabled
> within the i386 PC Target configuration in the 1.3.net configuration tool but
> this does not seem to make any difference. Should output be going to
> another device
> (config tool help says that PC screen is a third virtual serial device.
> What is this device
> name ?)
There should be _something_ on the attached screen, or at least, the
RedBoot stuff.
I think the issue is that RedBoot selects the default console once it has
got input from it, so if you connect over serial, all console I/O goes to
serial.
You could change this in your application by disabling
CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE in the Common HAL options, and
setting the default console channel to that of the screen. Do that with
CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL in the PC HAL config.
> 3. Can I use the PC keyboard for standard input?
Yes, that goes hand in hand with using the screen.
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