This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [rfa/testsuite] check sizeof


Andrew Cagney wrote:
> 
> Michael Snyder wrote:
> >
> > Stan Shebs wrote:
> > >
> > > Andrew Cagney wrote:
> > > >
> > > > Hello,
> > > >
> > > > The attatched checks that GDB and the running program agree over how
> > > > large a few basic C types are.  As a convenience, it also dumps out the
> > > > gdbarch so that tracking down failures is easier.
> > >
> > > Geez, I must have missed something along the way - normally GDB gets
> > > its size info from debug bits in the executable, which means that it
> > > should be impossible for these tests to fail?  But assuming that
> > > something changed to make it more likely, the tests themselves look
> > > satisfactory as the way to discover the discrepancy.
> >
> > What about all those implementer-defined consts like
> > TARGET_PTR_BIT and TARGET_INT_BIT?
> 
> Yep.
> 
> Having the test, has another useful effect.  Since they are being
> verified as part of the testsuite, I'm going to tweek multi-arch so that
> it providesdefault values.  At present it requires a definition. 

Excellent!

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