Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kai Tietz <Kai.Tietz@onevision.com>
To: gdb-patches@sourceware.org
Subject: [patch]: Fix windows x64 build
Date: Wed, 11 Feb 2009 14:21:00 -0000	[thread overview]
Message-ID: <OF8ECADAD5.B0A0B284-ONC125755A.004E836A-C125755A.004EDF57@onevision.de> (raw)

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));


             reply	other threads:[~2009-02-11 14:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-11 14:21 Kai Tietz [this message]
2009-02-11 14:35 ` Pedro Alves
2009-02-11 14:40   ` Kai Tietz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OF8ECADAD5.B0A0B284-ONC125755A.004E836A-C125755A.004EDF57@onevision.de \
    --to=kai.tietz@onevision.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox