This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Static constructors List
- From: tejas pawaskar <tejaspawaskar at yahoo dot co dot in>
- To: Andrew Lunn <andrew at lunn dot ch>
- Cc: Andrew Lunn <andrew at lunn dot ch>, ecos-discuss at sourceware dot org
- Date: Mon, 22 Jan 2007 11:32:34 +0000 (GMT)
- Subject: Re: [ECOS] Static constructors List
Sir,
How to cast it while printing?
I am using the toolchain mentioned on the
ecos.sourceware.org
Regards,
Tejas Pawaskar
--- Andrew Lunn <andrew@lunn.ch> wrote:
> On Mon, Jan 22, 2007 at 10:47:39AM +0000, tejas
> pawaskar wrote:
> > Thanks Mr.Andrew for your prompt reply.
> > I tried and got the following outpur
> >
> >
>
tpawaskar@Tejas-Ubuntu:~/devel/ecos/build/quantum/newrom/ecos_install/bin$
> > arm-linux-gdb
>
> I would not recommend using a Linux toolchain. I
> suggest you get the
> recommended toolchain listed on ecos.sourceware.org.
> For gdb it
> probably does not matter, but for compiling the
> Linux none linux stuff
> the toolchain can sometime be broken.
>
> > Reading symbols from redboot.elf...done.
> > (gdb) x &__CTOR_END__[-1]
> > cannot subscript something of type `<variable (not
> > text or data), no debug info>'
>
> So you need to cast it when printing it.
>
> > (gdb) x &__CTOR_END__
> > 0x8af0 <__exception_stack_base>: 0x00000000
> > (gdb) x 0x8af0
> > 0x8af0 <__exception_stack_base>: 0x00000000
> > (gdb)
> >
> > >From the above i get feeling that it is NULL.
>
> Nope, you have looked one past the end, since you
> don't have the [-1].
>
> Andrew
>
> --
> Before posting, please read the FAQ:
> http://ecos.sourceware.org/fom/ecos
> and search the list archive:
> http://ecos.sourceware.org/ml/ecos-discuss
>
>
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.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