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]
Other format: [Raw text]

Re: [commited] small changes to fix hpux-cc compile


Hi Randolph,

In this change:

  -  char dld_flags_buffer[TARGET_INT_BIT / TARGET_CHAR_BIT];
  +  char dld_flags_buffer[4];

I just ran into the same problem with TARGET_INT_BIT so I understand
why this needs to change.  But why 4?  What if the target configuration
has 64-bit ints?

How about this instead:

  char * dld_flags_buffer = alloca(TARGET_INT_BIT/TARGET_CHAR_BIT);

Michael C


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