aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/language.h4
-rw-r--r--gdb/valprint.c4
3 files changed, 8 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ec1bdca..db2d3f1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
+ * language.h (LA_PRINT_ARRAY_INDEX): Delete.
+ * valprint.c (maybe_print_array_index): Replace use of macro with
+ the macros definition.
+
+2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
+
* ada-lang.c (ada_language::print_array_index): Call value_print
directly.
* language.c (language_defn::print_array_index): Likewise.
diff --git a/gdb/language.h b/gdb/language.h
index c85f90f..bffa9fd 100644
--- a/gdb/language.h
+++ b/gdb/language.h
@@ -652,10 +652,6 @@ extern enum language set_language (enum language);
#define LA_EMIT_CHAR(ch, type, stream, quoter) \
(current_language->emitchar (ch, type, stream, quoter))
-#define LA_PRINT_ARRAY_INDEX(index_type, index_value, stream, options) \
- (current_language->print_array_index(index_type, index_value, stream, \
- options))
-
#define LA_ITERATE_OVER_SYMBOLS(BLOCK, NAME, DOMAIN, CALLBACK) \
(current_language->iterate_over_symbols (BLOCK, NAME, DOMAIN, CALLBACK))
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 880d04f..4fdb9ea 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -1866,8 +1866,8 @@ maybe_print_array_index (struct type *index_type, LONGEST index,
{
if (!options->print_array_indexes)
return;
-
- LA_PRINT_ARRAY_INDEX (index_type, index, stream, options);
+
+ current_language->print_array_index (index_type, index, stream, options);
}
/* See valprint.h. */