This is the mail archive of the gdb-patches@sourceware.cygnus.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: (patch) hpjyg23: gdbtypes.[ch] & values.c



  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



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