This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: cyg_io_lookup for /dev/tty0 fails
- From: Robert Brusa <bob dot brusa at gmail dot com>
- To: "Andrew Lunn" <andrew at lunn dot ch>, "Robert Brusa" <bob dot brusa at gmail dot com>
- Cc: MailingList:ecos-discuss <ecos-discuss at ecos dot sourceware dot org>;
- Date: Wed, 29 Oct 2008 09:21:44 +0100
- Subject: Re: [ECOS] cyg_io_lookup for /dev/tty0 fails
- References: <op.ujrzh0bxkeg3uf@localhost> <20081029090258.GV388@lunn.ch>
- Reply-to: Bob dot Brusa at gmail dot com
On Wed, 29 Oct 2008 10:02:58 +0100, Andrew Lunn <andrew@lunn.ch> wrote:
On Wed, Oct 29, 2008 at 08:38:16AM +0100, Robert Brusa wrote:
Hi
I reconfigured eCOS and now I am stuck with a problem I do not
understand.
When calling a lookup for tty0, the routine returns with an error.
I presume you mean a lookup for /dev/tty0, not tty0.
Yes - see last message.
My configuration seems to be ok - /dev/tty0 is in __DEVTAB__ and is
found
there. Things go wrong at line 137 (see screenshots of debugging
session): The if there should evaluate as true, but the program skips
the
true-branch and goes to to line 143 instead. Is this a compiler problem
or do I get something wrong? Thanks for any help.
If you think this is a compile problem we need to see the assembly
language your compiler generated for this code fragment.
Andrew
Ok, but I could not figure out how to get access to the assembly code. Is
there a disassembler built into gdb? And how access it from within
Eclipse? Thanks for hints.
Robert
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss