summaryrefslogtreecommitdiff
path: root/gdb/language.h
diff options
context:
space:
mode:
authorDavid Lecomber <david@lecomber.net>2004-08-29 10:12:24 +0000
committerDavid Lecomber <david@lecomber.net>2004-08-29 10:12:24 +0000
commit5f705b17fded6bb7fe3d119abd6ff14200257644 (patch)
tree441e9bf46ca36ed7d1ae3aaa1741655639641a69 /gdb/language.h
parente8dccf6c0bc6b3d1b53ceb72c58f363085b7e493 (diff)
downloadgdb-5f705b17fded6bb7fe3d119abd6ff14200257644.tar.gz
2004-08-29 David Lecomber <david@streamline-computing.com>
Fix PR gdb/648 * language.h (enum array_ordering): New enum. * language.h (struct language_defn): New la_array_ordering attribute. * language.c (unknown_language_defn, auto_language_defn) (local_language_defn): Ditto. * ada-lang.c (ada_language_defn): Ditto. * c-lang.c (c_language_defn, cplus_language_defn) (asm_language_defn, minimal_language_defn): Ditto. * f-lang.c (f_language_defn): Ditto. * jv-lang.c (java_language_defn): Ditto. * m2-lang.c (f_language_defn): Ditto. * objc-lang.c (objc_language_defn): Ditto. * p-lang.c (pascal_language_defn): Ditto. * scm-lang.c (scm_language_defn): Ditto. * eval.c (evaluate_subexp_standard): Assume Fortran arrays are oriented large to small in type structure. * dwarf2read.c (read_array_order): New function. (read_array_type): Use read_array_order to check row/column major ordering.
Diffstat (limited to 'gdb/language.h')
-rw-r--r--gdb/language.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/language.h b/gdb/language.h
index 489ca238634..98bdc3e1db9 100644
--- a/gdb/language.h
+++ b/gdb/language.h
@@ -96,6 +96,17 @@ extern enum case_mode
}
case_mode;
+/* array_ordering ==
+ array_row_major: Arrays are in row major order
+ array_column_major: Arrays are in column major order.*/
+
+extern enum array_ordering
+ {
+ array_row_major, array_column_major
+ }
+array_ordering;
+
+
/* case_sensitivity ==
case_sensitive_on: Case sensitivity in name matching is used
case_sensitive_off: Case sensitivity in name matching is not used */
@@ -187,6 +198,9 @@ struct language_defn
/* Default case sensitivity */
enum case_sensitivity la_case_sensitivity;
+ /* Multi-dimensional array ordering */
+ enum array_ordering la_array_ordering;
+
/* Definitions related to expression printing, prefixifying, and
dumping */