This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: (patch) hpjyg23: gdbtypes.[ch] & values.c
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: (patch) hpjyg23: gdbtypes.[ch] & values.c
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 15 Dec 1999 01:47:35 -0700
- cc: Jimmy Guo <guo at cup dot hp dot com>, gdb-patches at sourceware dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <3831BAF0.269CEFA1@cygnus.com>you write:
> Jimmy Guo wrote:
> >
>
> > >BFD64: I'm not sure this is the right test. Should some characteristic
> > >of the ABFD be tested instead?
> >
> > Suggestion for a better alternative is appreciated.
>
> Hmm, TARGET_PTR_BIT indicates the size of a target C-pointer but doesn't
> help when it comes to the object file.
>
> Checking through the BFD code it looks like there isn't anything to
> determine the address size of the object file being loaded. Sorry.
This information is kept in the architecture/machine structures. See
cpu-hppa.c for examples.
Once you know the architecture/machine you can extract the size of a word,
pointer or byte for the target.
jeff