diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-08-14 14:52:26 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-10-23 10:57:14 +0100 |
commit | d3b67c56fa2ec8fd3664e0d9bf6648f4dd4222d8 (patch) | |
tree | 0f4c9ee72cb1135047de34b685088a3a06e8f5b4 /gdb | |
parent | 790e2a12487890559d692d60bdaefaef9b9b45b1 (diff) | |
download | binutils-gdb-d3b67c56fa2ec8fd3664e0d9bf6648f4dd4222d8.tar.gz |
gdb: remove LA_PRINT_TYPEDEF macro
Remove the LA_PRINT_TYPEDEF macro, replace the single use with the
macros definition.
There should be no user visible changes after this commit.
gdb/ChangeLog:
* language.h (LA_PRINT_TYPEDEF): Delete.
* typeprint.c (typedef_print): Call print_typedef directly on the
current_language object.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/language.h | 3 | ||||
-rw-r--r-- | gdb/typeprint.c | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e9ab8ec2226..c517470c9d9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> + * language.h (LA_PRINT_TYPEDEF): Delete. + * typeprint.c (typedef_print): Call print_typedef directly on the + current_language object. + +2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> + * m2-exp.y (m2_parse): Rename to... (m2_language::parser): ...this. Update function signature. * m2-lang.c (m2_printchar): Renamed to m2_language::printchar. diff --git a/gdb/language.h b/gdb/language.h index 3ee6476cbbb..3452149c9ca 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -644,9 +644,6 @@ extern enum language set_language (enum language); #define LA_PRINT_TYPE(type,varstring,stream,show,level,flags) \ (current_language->print_type(type,varstring,stream,show,level,flags)) -#define LA_PRINT_TYPEDEF(type,new_symbol,stream) \ - (current_language->print_typedef (type,new_symbol,stream)) - #define LA_VALUE_PRINT(val,stream,options) \ (current_language->value_print (val,stream,options)) diff --git a/gdb/typeprint.c b/gdb/typeprint.c index 82ca4257962..40ad239eaef 100644 --- a/gdb/typeprint.c +++ b/gdb/typeprint.c @@ -358,7 +358,7 @@ typedef_hash_table::find_typedef (const struct type_print_options *flags, void typedef_print (struct type *type, struct symbol *newobj, struct ui_file *stream) { - LA_PRINT_TYPEDEF (type, newobj, stream); + current_language->print_typedef (type, newobj, stream); } /* Print a description of a type TYPE in the form of a declaration of a |