Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Pierre Muller <pierre.muller@ics-cnrs.unistra.fr>
Cc: gdb-patches@sourceware.org
Subject: Re: [commit] Add ARI marker to get_DW_AT_signature_type.
Date: Mon, 29 Apr 2013 15:30:00 -0000	[thread overview]
Message-ID: <20130429090108.GW3525@adacore.com> (raw)
In-Reply-To: <006f01ce44b4$dc904ed0$95b0ec70$@muller@ics-cnrs.unistra.fr>

> So I would like to propose this patch:
> 
> 
> Pierre Muller as ARI maintainer.
> 
> 
> 2013-04-29  Pierre Muller  <muller@sourceware.org>
> 
>         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
>         editCase function rule.
>         (get_DW_AT_signature_type): Likewise.

That looks good to me. My patch was based on a misunderstand from
our previous discussion. Note the small typo below, however:

> 
> Index: dwarf2read.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/dwarf2read.c,v
> retrieving revision 1.790
> diff -u -p -r1.790 dwarf2read.c
> --- dwarf2read.c        29 Apr 2013 05:05:44 -0000      1.790
> +++ dwarf2read.c        29 Apr 2013 08:34:26 -0000
> @@ -8053,7 +8053,7 @@ find_file_and_directory (struct die_info
> 
>  static void
>  handle_DW_AT_stmt_list (struct die_info *die, struct dwarf2_cu *cu,
> -                       const char *comp_dir)
> +                       const char *comp_dir) /ARI: editCase function */
                                               ^^^^ Missing "* " after "/"
>  {
>    struct attribute *attr;
> 
> @@ -17924,8 +17924,8 @@ get_signatured_type (struct die_info *di
>     reading in and processing the type unit if necessary.  */
> 
>  static struct type *
> -get_DW_AT_signature_type /* ARI: editCase */
> -  (struct die_info *die, struct attribute *attr, struct dwarf2_cu *cu)
> +get_DW_AT_signature_type (struct die_info *die, struct attribute *attr,
> +                         struct dwarf2_cu *cu) /* ARI: editCase function */
>  {
>    /* Yes, DW_AT_signature can use a non-ref_sig8 reference.  */
>    if (is_ref_attr (attr))
> 
> 
> 
> 
> > -----Message d'origine-----
> > De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> > owner@sourceware.org] De la part de Joel Brobecker
> > Envoyé : lundi 29 avril 2013 07:09
> > À : gdb-patches@sourceware.org
> > Cc : Joel Brobecker
> > Objet : [commit] Add ARI marker to get_DW_AT_signature_type.
> > 
> > Hello,
> > 
> > As discussed at:
> > http://www.sourceware.org/ml/gdb-patches/2013-04/msg00564.html
> > 
> > gdb/ChangeLog:
> > 
> >         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
> > 
> > Tested by rebuilding GDB. Checked in.
> > 
> > ---
> >  gdb/ChangeLog    |    4 ++++
> >  gdb/dwarf2read.c |    4 ++--
> >  2 files changed, 6 insertions(+), 2 deletions(-)
> > 
> > diff --git a/gdb/ChangeLog b/gdb/ChangeLog
> > index 630fd1d..429445f 100644
> > --- a/gdb/ChangeLog
> > +++ b/gdb/ChangeLog
> > @@ -1,3 +1,7 @@
> > +2013-04-29  Joel Brobecker  <brobecker@adacore.com>
> > +
> > +	* dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
> > +
> >  2013-04-28  Yao Qi  <yao@codesourcery.com>
> > 
> >  	* solib-dsbt.c (fetch_loadmap): Re-indent.
> > diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
> > index 37b7dc4..bd162e6 100644
> > --- a/gdb/dwarf2read.c
> > +++ b/gdb/dwarf2read.c
> > @@ -17924,8 +17924,8 @@ get_signatured_type (struct die_info *die,
> ULONGEST
> > signature,
> >     reading in and processing the type unit if necessary.  */
> > 
> >  static struct type *
> > -get_DW_AT_signature_type (struct die_info *die, struct attribute *attr,
> > -			  struct dwarf2_cu *cu)
> > +get_DW_AT_signature_type /* ARI: editCase */
> > +  (struct die_info *die, struct attribute *attr, struct dwarf2_cu *cu)
> >  {
> >    /* Yes, DW_AT_signature can use a non-ref_sig8 reference.  */
> >    if (is_ref_attr (attr))
> > --
> > 1.7.10.4
> 

-- 
Joel


  reply	other threads:[~2013-04-29  9:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18 16:02 New ARI warning Thu Apr 18 01:51:12 UTC 2013 in -D 2013-04-18-gmt GDB Administrator
2013-04-19 14:27 ` Joel Brobecker
2013-04-19 14:29   ` Pierre Muller
2013-04-19 14:31     ` Joel Brobecker
2013-04-29 14:47   ` [commit] Add ARI marker to get_DW_AT_signature_type Joel Brobecker
2013-04-29 15:30     ` Pierre Muller
2013-04-29 15:30       ` Joel Brobecker [this message]
2013-04-29 17:19         ` Pierre Muller

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=20130429090108.GW3525@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pierre.muller@ics-cnrs.unistra.fr \
    /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