Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix build on sparc
@ 2011-11-26 19:39 David Miller
  2011-11-26 20:14 ` [PATCH] Fix build on sparc (remote.c/tracepoints) Joel Brobecker
  2011-11-26 20:48 ` [PATCH] Fix build on sparc Jan Kratochvil
  0 siblings, 2 replies; 7+ messages in thread
From: David Miller @ 2011-11-26 19:39 UTC (permalink / raw)
  To: gdb-patches


sprintf_vma() expands to a printf format string appropriate for
a bfd_vma type, so the only proper cast is to that exact type.

This fixes the build for me on sparc-*-linux*.

Ok to commit?

gdb/

2011-11-26  David S. Miller  <davem@davemloft.net>

	* remote.c (remote_get_tracepoint_status): Fix sprintf_vma() arg cast.

diff --git a/gdb/remote.c b/gdb/remote.c
index 8fa5c1a..18a3580 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -10249,7 +10249,7 @@ remote_get_tracepoint_status (struct breakpoint *bp,
     {
       utp->hit_count = 0;
       utp->traceframe_usage = 0;
-      sprintf_vma (addrbuf, (long unsigned int) utp->addr);
+      sprintf_vma (addrbuf, (bfd_vma) utp->addr);
       sprintf (rs->buf, "qTP:%x:%s", utp->number, addrbuf);
       putpkt (rs->buf);
       reply = remote_get_noisy_reply (&target_buf, &target_buf_size);


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-11-27 17:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-26 19:39 [PATCH] Fix build on sparc David Miller
2011-11-26 20:14 ` [PATCH] Fix build on sparc (remote.c/tracepoints) Joel Brobecker
2011-11-26 20:32   ` David Miller
2011-11-26 20:51   ` Joel Brobecker
2011-11-26 23:42     ` Stan Shebs
2011-11-27 17:44       ` Joel Brobecker
2011-11-26 20:48 ` [PATCH] Fix build on sparc Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox