This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]