The gdb x86 function prologue parser

Andreas Schwab schwab@suse.de
Thu Jun 9 09:02:00 GMT 2005


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.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gdb-patches mailing list