aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2014-04-24 13:16:38 -0700
committerJoel Brobecker <brobecker@adacore.com>2014-04-24 13:20:33 -0700
commit82eacd52ba9130cf0126fa513775b5d4415f7da3 (patch)
treee201ac1eedaf9867085e1109275c9521696b4914 /gdb/ada-lang.c
parent25d4e99db83ba758e3c888d321b9f2f7845701a0 (diff)
downloadgdb-82eacd52ba9130cf0126fa513775b5d4415f7da3.zip
gdb-82eacd52ba9130cf0126fa513775b5d4415f7da3.tar.gz
gdb-82eacd52ba9130cf0126fa513775b5d4415f7da3.tar.bz2
ada-lang.c: Expand standard_exc's introductory comment.
This patch expands standard_exc's introductory comment to explain why this table does not include Numeric_Error. gdb/ChangeLog: * ada-lang.c (standard_exc): Expand introductory comment.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 279c20e..da304ab 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -11294,7 +11294,19 @@ ada_modulus (struct type *type)
variants of the runtime, we use a sniffer that will determine
the runtime variant used by the program being debugged. */
-/* Ada's standard exceptions. */
+/* Ada's standard exceptions.
+
+ The Ada 83 standard also defined Numeric_Error. But there so many
+ situations where it was unclear from the Ada 83 Reference Manual
+ (RM) whether Constraint_Error or Numeric_Error should be raised,
+ that the ARG (Ada Rapporteur Group) eventually issued a Binding
+ Interpretation saying that anytime the RM says that Numeric_Error
+ should be raised, the implementation may raise Constraint_Error.
+ Ada 95 went one step further and pretty much removed Numeric_Error
+ from the list of standard exceptions (it made it a renaming of
+ Constraint_Error, to help preserve compatibility when compiling
+ an Ada83 compiler). As such, we do not include Numeric_Error from
+ this list of standard exceptions. */
static char *standard_exc[] = {
"constraint_error",