This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa/testsuite] check sizeof
- To: Stan Shebs <shebs at apple dot com>
- Subject: Re: [rfa/testsuite] check sizeof
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Thu, 13 Jul 2000 09:20:18 -0700
- CC: Andrew Cagney <ac131313 at cygnus dot com>, GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Organization: Cygnus Solutions
- References: <396D27FF.745CA680@cygnus.com> <396D2AAC.A61ECFA8@apple.com>
- Reply-To: msnyder at cygnus dot com
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?
>
> > Ok? (I'll quickly fix the copyright dates).
>
> Yeah, while a few characters of the file may actually date back
> to 1988 by a continuous series of cut-n-pastes, it's a bit misleading
> to use that in a newly-created file!
>
> Stan