This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch]: Fix windows x64 build
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 11 Feb 2009 15:21:40 +0100
- Subject: [patch]: Fix windows x64 build
Hello,
I noticed that building of w64 was broken by a warning in gdbarch.c by
casting a pointer to long type.
ChangeLog
2009-02-11 Kai Tietz <kai,tietz@onevision.com>
* gdbarch.c (gdbarch_dump): Cast via size_t to long.
Is this patch ok to apply?
Kai
| (\_/) This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.
Index: src/gdb/gdbarch.c
===================================================================
--- src.orig/gdb/gdbarch.c 2009-02-11 10:10:10.000000000 +0100
+++ src/gdb/gdbarch.c 2009-02-11 10:10:35.462651800 +0100
@@ -842,7 +842,7 @@
gdbarch_get_siginfo_type_p (gdbarch));
fprintf_unfiltered (file,
"gdbarch_dump: get_siginfo_type = <0x%lx>\n",
- (long) gdbarch->get_siginfo_type);
+ (long) (size_t) gdbarch->get_siginfo_type);
fprintf_unfiltered (file,
"gdbarch_dump: has_global_solist = %s\n",
plongest (gdbarch->has_global_solist));