This is the mail archive of the gdb-patches@sourceware.cygnus.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]

Re: RFA: USE_STRUCT_CONVENTION for NetBSD/i386


"J.T. Conklin" wrote:


> ! int
> ! i386nbsd_use_struct_convention (int gcc_p, struct type *type)
> ! {
> !   return !(TYPE_LENGTH (type) == 1
> !          || TYPE_LENGTH (type) == 2
> !          || TYPE_LENGTH (type) == 4
> !          || TYPE_LENGTH (type) == 8);
> ! }
> !

I'd add a FIXME pointing out known problems with the function. 
Otherwize ok.

I assume Mark is trying to figure out why NetBSD can't simply use a
common i386_use_struct_convention function.  I take it from your answer,
that NetBSD's convention isn't 100% standard (where standard would mean
what someone other than Linux or *BSD did.  Solaris/x86?).

	Andrew

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