From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: brobecker@adacore.com (Joel Brobecker)
Cc: gdb-patches@sourceware.org
Subject: Re: [rfa/Ada] Restructure array bounds routines to remove builtin types
Date: Mon, 29 Jun 2009 17:29:00 -0000 [thread overview]
Message-ID: <200906291728.n5THSCoJ005640@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <20090629153649.GA7584@adacore.com> from "Joel Brobecker" at Jun 29, 2009 08:36:49 AM
Joel Brobecker wrote:
> Looks OK to me, and verified also against AdaCore's testsuite
> on x86-linux (DWARF and stabs).
Thanks for the quick review! I've committed the patch now.
> Just one tiny request:
>
> > -struct type *
> > -ada_index_type (struct type *type, int n)
> > +static struct type *
> > +ada_index_type (struct type *type, int n, const char *name)
>
> Would you mind documenting what this new NAME parameter is supposed
> to be?
Here's what I committed on top of the original patch:
ChangeLog:
* ada-lang.c (ada_index_type): Update comment.
Index: gdb/ada-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/ada-lang.c,v
retrieving revision 1.217
diff -u -r1.217 ada-lang.c
--- gdb/ada-lang.c 29 Jun 2009 17:22:10 -0000 1.217
+++ gdb/ada-lang.c 29 Jun 2009 17:24:55 -0000
@@ -2408,7 +2408,10 @@
}
/* The type of nth index in arrays of given type (n numbering from 1).
- Does not examine memory. */
+ Does not examine memory. Throws an error if N is invalid or TYPE
+ is not an array type. NAME is the name of the Ada attribute being
+ evaluated ('range, 'first, 'last, or 'length); it is used in building
+ the error message. */
static struct type *
ada_index_type (struct type *type, int n, const char *name)
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
prev parent reply other threads:[~2009-06-29 17:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-26 15:51 Ulrich Weigand
2009-06-29 15:37 ` Joel Brobecker
2009-06-29 17:29 ` Ulrich Weigand [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=200906291728.n5THSCoJ005640@d12av02.megacenter.de.ibm.com \
--to=uweigand@de.ibm.com \
--cc=brobecker@adacore.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