This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [RFA] read_frame_register_value and big endian arches


Hi Pedro,

> > gdb/ChangeLog:
> > 
> >         * findvar.c (read_frame_register_value): Read the correct bytes
> >         from registers on big-endian architectures.
> 
> Looks good to me.

Thanks for double-checking my change...

> > +if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug optimize=-O1]] != "" } {
> 
> Does the test really depend on the compiler doing the right optimizations?

Yes. I haven't looked at the unoptimized version, but my guess is
that the parameter value gets immediately pushed to the stack, thus
hiding the problem.

-- 
Joel


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