* New ARI warning Thu Apr 18 01:51:12 UTC 2013 in -D 2013-04-18-gmt
@ 2013-04-18 16:02 GDB Administrator
2013-04-19 14:27 ` Joel Brobecker
0 siblings, 1 reply; 8+ messages in thread
From: GDB Administrator @ 2013-04-18 16:02 UTC (permalink / raw)
To: gdb-patches
215a216
> gdb/dwarf2read.c:17927: code: editCase function: Function name starts lower case but has uppercased letters.
gdb/dwarf2read.c:17927:get_DW_AT_signature_type (struct die_info *die, struct attribute *attr, struct dwarf2_cu *cu)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: New ARI warning Thu Apr 18 01:51:12 UTC 2013 in -D 2013-04-18-gmt
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-29 14:47 ` [commit] Add ARI marker to get_DW_AT_signature_type Joel Brobecker
0 siblings, 2 replies; 8+ messages in thread
From: Joel Brobecker @ 2013-04-19 14:27 UTC (permalink / raw)
To: GDB Administrator; +Cc: gdb-patches
> > gdb/dwarf2read.c:17927: code: editCase function: Function name starts lower case but has uppercased letters.
> gdb/dwarf2read.c:17927:get_DW_AT_signature_type (struct die_info *die, struct attribute *attr, struct dwarf2_cu *cu)
Let's add an ARI marker to accept this as a valid exception...
--
Joel
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: New ARI warning Thu Apr 18 01:51:12 UTC 2013 in -D 2013-04-18-gmt
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
1 sibling, 1 reply; 8+ messages in thread
From: Pierre Muller @ 2013-04-19 14:29 UTC (permalink / raw)
To: 'Joel Brobecker'; +Cc: gdb-patches
> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Joel Brobecker
> Envoyé : jeudi 18 avril 2013 17:17
> À : GDB Administrator
> Cc : gdb-patches@sourceware.org
> Objet : Re: New ARI warning Thu Apr 18 01:51:12 UTC 2013 in -D 2013-04-18-
> gmt
>
> > > gdb/dwarf2read.c:17927: code: editCase function: Function name starts
> lower case but has uppercased letters.
> > gdb/dwarf2read.c:17927:get_DW_AT_signature_type (struct die_info *die,
> struct attribute *attr, struct dwarf2_cu *cu)
>
> Let's add an ARI marker to accept this as a valid exception...
I agree in principle,
but the problem is that to avoid the warning you should add
/* ARI: editCase */ comment...
And the natural position to insert such comment would
be after the closing brace of the parameter list.
As you can see above, the function header of get_DW_AT_signature_type is
already
on two lines...
But comments are handled early in gdb_ari.sh gawk script,
as all comments are removed later on.
But this means that it would be difficult to parse multilines
for this ARI comment...
To put it bluntly,
once again my AWK level is too low to fix this kind of issues...
Pierre Muller
as not-efficient ARI maintainer
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: New ARI warning Thu Apr 18 01:51:12 UTC 2013 in -D 2013-04-18-gmt
2013-04-19 14:29 ` Pierre Muller
@ 2013-04-19 14:31 ` Joel Brobecker
0 siblings, 0 replies; 8+ messages in thread
From: Joel Brobecker @ 2013-04-19 14:31 UTC (permalink / raw)
To: Pierre Muller; +Cc: gdb-patches
On Fri, Apr 19, 2013 at 12:19:41AM +0200, Pierre Muller wrote:
>
>
> > -----Message d'origine-----
> > De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> > owner@sourceware.org] De la part de Joel Brobecker
> > Envoyé : jeudi 18 avril 2013 17:17
> > ÃÂ : GDB Administrator
> > Cc : gdb-patches@sourceware.org
> > Objet : Re: New ARI warning Thu Apr 18 01:51:12 UTC 2013 in -D 2013-04-18-
> > gmt
> >
> > > > gdb/dwarf2read.c:17927: code: editCase function: Function name starts
> > lower case but has uppercased letters.
> > > gdb/dwarf2read.c:17927:get_DW_AT_signature_type (struct die_info *die,
> > struct attribute *attr, struct dwarf2_cu *cu)
> >
> > Let's add an ARI marker to accept this as a valid exception...
> I agree in principle,
> but the problem is that to avoid the warning you should add
> /* ARI: editCase */ comment...
> And the natural position to insert such comment would
> be after the closing brace of the parameter list.
I was actually thinking of writing it like so:
get_DW_AT_signature_type /* ARI: editCase */
(struct die_info *die, struct attribute *attr,
struct dwarf2_cu *cu)
{
}
Not ideal, but I do not think it would be the first time that
the arguments start on the line following the function name...
--
Joel
^ permalink raw reply [flat|nested] 8+ messages in thread
* [commit] Add ARI marker to get_DW_AT_signature_type.
2013-04-19 14:27 ` Joel Brobecker
2013-04-19 14:29 ` Pierre Muller
@ 2013-04-29 14:47 ` Joel Brobecker
2013-04-29 15:30 ` Pierre Muller
1 sibling, 1 reply; 8+ messages in thread
From: Joel Brobecker @ 2013-04-29 14:47 UTC (permalink / raw)
To: gdb-patches; +Cc: Joel Brobecker
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [commit] Add ARI marker to get_DW_AT_signature_type.
2013-04-29 15:30 ` Pierre Muller
@ 2013-04-29 15:30 ` Joel Brobecker
2013-04-29 17:19 ` Pierre Muller
0 siblings, 1 reply; 8+ messages in thread
From: Joel Brobecker @ 2013-04-29 15:30 UTC (permalink / raw)
To: Pierre Muller; +Cc: gdb-patches
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [commit] Add ARI marker to get_DW_AT_signature_type.
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
0 siblings, 1 reply; 8+ messages in thread
From: Pierre Muller @ 2013-04-29 15:30 UTC (permalink / raw)
To: 'Joel Brobecker', gdb-patches
Hi all,
Joel,
I commpletely agree with you on the principle of this patch,
but I must confess that it somehow also bypasses the current
implementation of the editCase rule:
The problem is the following:
if you lok at the patterns for "UCASE function" or "editCase function"
rules,
you will see that possible_editCase is set to one
if and only if there is a function name starting at start of line
followed by an opening brace on the same line...
Which is not the case anymore after your patch...
The rule is built to be able to find /* ARI: editCase function */
in any of the lines listing all the parameters....
At least, it is now that I just fixed a spelling error
inside gdb_ari.sh that prevented it from working correctly before...
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.
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 */
{
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [commit] Add ARI marker to get_DW_AT_signature_type.
2013-04-29 15:30 ` Joel Brobecker
@ 2013-04-29 17:19 ` Pierre Muller
0 siblings, 0 replies; 8+ messages in thread
From: Pierre Muller @ 2013-04-29 17:19 UTC (permalink / raw)
To: 'Joel Brobecker'; +Cc: gdb-patches
> -----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 11:01
> À : Pierre Muller
> Cc : gdb-patches@sourceware.org
> Objet : Re: [commit] Add ARI marker to get_DW_AT_signature_type.
>
> > 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:
Committed after fixing the typo you found and checking compilation
for mingw32 system.
Thanks for the approval,
Pierre Muller
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-04-29 9:53 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2013-04-29 17:19 ` Pierre Muller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox