From: Joel Brobecker <brobecker@adacore.com>
To: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH 1/348] Fix -Wshadow errors
Date: Fri, 18 Nov 2011 14:14:00 -0000 [thread overview]
Message-ID: <20111118141340.GC2703@adacore.com> (raw)
In-Reply-To: <CAHQ1cqE8eC9_eMKDXpohuk1QYfu=Ue3dXVQL5zmfnzv5qzFFZw@mail.gmail.com>
Andrey,
> ---
> gdb/ada-exp.y | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
This change is OK, but we need a ChangeLog entry for it. As soon as
you've resubmitted it with the ChangeLog entry, we can give you write
access to the GDB repository, and you'll be able to commit the approved
patches yourself.
If you haven't already done so, please read the gdb/CONTRIBUTE file...
Generally speaking, we also expect all changes to be validated against
our testsuite. This means running the testsuite before and after the
patch, and making sure that new failures did not appear in the meantime.
>
> diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
> index 9576be5..bfa3913 100644
> --- a/gdb/ada-exp.y
> +++ b/gdb/ada-exp.y
> @@ -1287,12 +1287,12 @@ write_var_or_type (struct block *block, struct stoken name0)
> FIXME pnh 7/20/2007. */
> if (nsyms == 1)
> {
> - struct symbol *renaming =
> + struct symbol *ren_sym =
> ada_find_renaming_symbol (SYMBOL_LINKAGE_NAME (syms[0].sym),
> syms[0].block);
>
> - if (renaming != NULL)
> - syms[0].sym = renaming;
> + if (ren_sym != NULL)
> + syms[0].sym = ren_sym;
> }
>
> type_sym = select_possible_type_sym (syms, nsyms);
> --
> 1.7.5.4
>
--
Joel
prev parent reply other threads:[~2011-11-18 14:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-18 12:49 Andrey Smirnov
2011-11-18 14:14 ` Joel Brobecker [this message]
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=20111118141340.GC2703@adacore.com \
--to=brobecker@adacore.com \
--cc=andrew.smirnov@gmail.com \
--cc=gdb-patches@sourceware.org \
/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