w64 native support needs type abstraction for long
Kai Tietz
Kai.Tietz@onevision.com
Wed Apr 4 09:13:00 GMT 2007
Hello,
I am currently on the port of binutils (especially of libbfd for gdb) to
support native windows 64. Here I noticed, that in some places a "long"
type is used for helding pointer values (e.g. in
"/include/coff/internal.h" for structure internal_syment). I would like to
introduce for this the type "longptr_t" defined as follows
#ifndef LONGPTR_T
#define LONGPTR_T
#ifdef _WIN64
typedef long long longptr_t;
typedef unsigned long long ulongptr_t;
#else
typedef unsigned long ulongptr_t;
typedef long longptr_t;
#endif
#endif
and replace these by longptr_t/ulongptr_t. (AFAIK size_t or intptr_t is
not defined on all platforms).
Where I should place this new type ? I thoght about bfd.h.
Or should I use a different approach ?
Regards,
i.A. Kai Tietz
------------------------------------------------------------------------------------------
OneVision Software Entwicklungs GmbH & Co. KG
Dr.-Leo-Ritter-Straße 9 - 93049 Regensburg
Tel: +49.(0)941.78004.0 - Fax: +49.(0)941.78004.489 - www.OneVision.com
Commerzbank Regensburg - BLZ 750 400 62 - Konto 6011050
Handelsregister: HRA 6744, Amtsgericht Regensburg
Komplementärin: OneVision Software Entwicklungs Verwaltungs GmbH
Dr.-Leo-Ritter-Straße 9 – 93049 Regensburg
Handelsregister: HRB 8932, Amtsgericht Regensburg - Geschäftsführer:
Ulrike Döhler, Manuela Kluger
More information about the Binutils
mailing list