This is the mail archive of the gdb-patches@sourceware.org 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: remote-sim.h


On Oct 31, 2011, at 8:54 PM, Mike Frysinger wrote:
>> +#if BFD_ARCH_SIZE <= 32
>> typedef unsigned int SIM_ADDR;
>> #else
>> +typedef unsigned long SIM_ADDR;
>> +#endif
>> +#else
>> typedef CORE_ADDR_TYPE SIM_ADDR;
>> #endif
> 
> i'm guessing you're creating a 64bit simulator.  this setup won't work when 
> building on a 32bit system as unsigned long will still be 32bit.  i wonder if 
> bfd_vma would be appropriate as a default instead, but i'm not sure of the 
> exact purpose of that type ...

Indeed, bfd_vma would work just fine for me.  (I only have 64-bit pointers, and only have one target).


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