Use host_address_to_string in compile_cplus_instance::enter_scope
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.
This commit is contained in:
parent
4c971803c4
commit
fdad7678b7
2 changed files with 9 additions and 1 deletions
|
@ -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 ("");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue