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: The gdb x86 function prologue parser


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.


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