• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisionfa42dd2e8328560e65c888277ab146810c1763a8 (tree)
Time2016-09-22 20:26:44
AuthorAnton Kolesov <Anton.Kolesov@syno...>
CommiterAnton Kolesov

Log Message

arc: Fix ARI warning for printf(%p)

Replace printf ("%p") with printf ("%s", host_address_to_string ()). Printing
host addrss might make sense here because pointers can be null and this would
affect how function behaves.

This particular warning is printed only when option -Wari is passed to
contrib/ari/gdb_ari.sh

gdb/ChangeLog:

* arc-tdep.c: Fix ARI warning for printf(%p).

Change Summary

Incremental Difference

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
1+2016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
2+
3+ * arc-tdep.c: Fix ARI warning for printf(%p).
4+
15 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
26
37 * MAINTAINERS (Write After Approval): Add Anton Kolesov.
--- a/gdb/arc-tdep.c
+++ b/gdb/arc-tdep.c
@@ -574,8 +574,9 @@ arc_return_value (struct gdbarch *gdbarch, struct value *function,
574574 || TYPE_LENGTH (valtype) > 2 * ARC_REGISTER_SIZE);
575575
576576 if (arc_debug)
577- debug_printf ("arc: return_value (readbuf = %p, writebuf = %p)\n",
578- readbuf, writebuf);
577+ debug_printf ("arc: return_value (readbuf = %s, writebuf = %s)\n",
578+ host_address_to_string (readbuf),
579+ host_address_to_string (writebuf));
579580
580581 if (writebuf != NULL)
581582 {