From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: Andrew Cagney Cc: Jimmy Guo , gdb-patches@sourceware.cygnus.com Subject: Re: (patch) hpjyg23: gdbtypes.[ch] & values.c Date: Wed, 15 Dec 1999 01:00:00 -0000 Message-id: <919.945247655@upchuck> References: <3831BAF0.269CEFA1@cygnus.com> X-SW-Source: 1999-q4/msg00382.html 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