This is the mail archive of the insight@sourceware.org mailing list for the Insight 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]

[PATCH] Compliancy to windows 64bit


Hi...

On windows 64bit datatype long remains to be 32bit (as opposed to eg. linux/mac where it is extended to also be 64bit). This yields to some (easy to fix) problems for insight. The attached patch fixes this.

Changelog:

2012-03-19 Roland Schwingel <roland.schwingel@onevision.com>

        * generic/gdbtk-register.c (get_register_types): Cast result of
        TYPE_FIELD_TYPE to size_t instead of long.
        (gdb_regformat): on windows 64bit use strtoll instead of strtol.
        * generic/gdbtk-stack.c (gdb_get_vars_command): Don't cast
        clientData to long. Here checking of non NULL clientData is enough.

Any comments? Is this ok?

Roland

Attachment: win64_gdbtk-register.c.patch
Description: Text document

Attachment: win64_gdbtk-stack.c.patch
Description: Text document


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