Use host_address_to_string in compile_cplus_instance::enter_scope
authorKeith Seitz <keiths@redhat.com>
Thu, 30 Aug 2018 14:47:03 +0000 (07:47 -0700)
committerKeith Seitz <keiths@redhat.com>
Thu, 30 Aug 2018 14:47:03 +0000 (07:47 -0700)
This patch fixes a problem being reported by the buildbot with an
invalid argument to a "%p" printf format. Instead of "%p", the
debug output is changed to use "%s" and host_address_to_string.

gdb/ChangeLog

* compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
Use "%s" and host_address_to_string instead of "%p" in printf.

gdb/ChangeLog
gdb/compile/compile-cplus-types.c

index 43e22e2ab18a28429ea762c680376ab892f50e9e..2e59caf5c6bf17195d7f929eeffb39aab3e73299 100644 (file)
@@ -1,3 +1,8 @@
+2018-08-30  Keith Seitz  <keiths@redhat.com>
+
+       * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
+       Use "%s" and host_address_to_string instead of "%p" in printf.
+
 2018-08-29  Keith Seitz  <keiths@redhat.com>
 
        * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
index 9425fc6ac7778162419decbf87cfda85e5ba79f4..e86a573fa31f49a9c8c70d3f9c88844d321f95ec 100644 (file)
@@ -259,7 +259,10 @@ compile_cplus_instance::enter_scope (compile_scope &new_scope)
   if (must_push)
     {
       if (debug_compile_cplus_scopes)
-       fprintf_unfiltered (gdb_stdlog, "entering new scope %p\n", new_scope);
+       {
+         fprintf_unfiltered (gdb_stdlog, "entering new scope %s\n",
+                             host_address_to_string (&new_scope));
+       }
 
       /* Push the global namespace. */
       plugin ().push_namespace ("");
This page took 0.032663 seconds and 4 git commands to generate.