This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: fix PR 9164
>>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:
Pedro> I think that m32c will need a hook here. I think that in some
Pedro> modes, size_t will be 16-bit, but pointer width 24-bits.
Pedro> I wonder if the above shouldn't be a gdbarch method, that defaults to
Pedro> what you wrote.
Yeah, I do see some gcc ports where size_t depends on the flags.
Not m32c, actually, but:
../arm/arm.h:597:#define SIZE_TYPE (TARGET_AAPCS_BASED ? "unsigned int" : "long unsigned int")
... all the other conditionally-defined ones seem to be decided by the
size of pointers.
I'll look into this more.
Tom