Re: The gdb x86 function prologue parser

Michael Snyder
2005-06-10T20:23:52Z

Andreas Schwab wrote:
> Jason Molenda <jason-swarelist@molenda.com> writes:
>
>
>>Hi Andreas,
>>
>>On Wed, Jun 08, 2005 at 09:58:12PM +0200, Andreas Schwab wrote:
>>
>>
>>>>>+#include <stdint.h>
>>>
>>>Since this is a target (not native) file it needs to use types portable to
>>>all hosts.
>>
>>I'll drop stdint.h because it requires ISO C99, but I don't understand
>>your comment. Is there some environment where uint32_t isn't 4 bytes?
>
>
> If uint32_t is available at all, you can't universally assume that. I was
> referring to the statement from Eli, who said "replaceable by suitable
> standard x86 types", but this file must be compilable on any host, not
> only x86.

Yes, you just have to make sure that the "standard x86 types"
are used only for target-side data objects, not host-side ones.