From: Joel Brobecker <brobecker@adacore.com>
To: Simon Marchi <simon.marchi@ericsson.com>
Cc: gdb-patches@sourceware.org, Keith Seitz <keiths@redhat.com>
Subject: Re: [PATCH] Fix compile-cplus-types.c build errors
Date: Thu, 30 Aug 2018 15:05:00 -0000 [thread overview]
Message-ID: <20180830150458.GA2617@adacore.com> (raw)
In-Reply-To: <1535640184-20543-1-git-send-email-simon.marchi@ericsson.com>
Hi Simon,
> gdb/ChangeLog:
>
> * compile/compile-cplus-types.c
> (compile_cplus_instance::enter_scope): Take the address of scope
> object.
> (compile_cplus_instance::leave_scope): Likewise.
> (compile_cplus_instance::convert_qualified_base): Compare quals
> to 0.
[...]
> diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c
> index 9425fc6..844c8ce 100644
> --- a/gdb/compile/compile-cplus-types.c
> +++ b/gdb/compile/compile-cplus-types.c
> @@ -259,7 +259,7 @@ 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 %p\n", &new_scope);
While at it, can you change the use of %p by using %s combined with
host_address_to_string? Using %p triggers an ARI warning.
> @@ -1055,7 +1055,7 @@ compile_cplus_instance::convert_qualified_base (gcc_type base,
> {
> gcc_type result = base;
>
> - if (quals != GCC_CP_REF_QUAL_NONE)
> + if (quals != 0)
> result = plugin ().build_qualified_type (base, quals);
>
> return result;
> --
> 2.7.4
--
Joel
next prev parent reply other threads:[~2018-08-30 15:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-30 14:43 Simon Marchi
2018-08-30 15:05 ` Joel Brobecker [this message]
2018-08-30 15:06 ` Tom Tromey
2018-08-30 15:13 ` Simon Marchi
2018-08-30 15:28 ` Tom Tromey
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=20180830150458.GA2617@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=keiths@redhat.com \
--cc=simon.marchi@ericsson.com \
/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