diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-09-21 12:10:04 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-10-23 10:57:14 +0100 |
commit | 88cefd9be076ea1f66b933be484d82f200b0f6c3 (patch) | |
tree | d1ffbb4bb2878182fa7675cf94273df67c4a09cb /gdb | |
parent | 5399db93c53472a9b41ce6c8df00791b1ca31247 (diff) | |
download | gdb-88cefd9be076ea1f66b933be484d82f200b0f6c3.zip gdb-88cefd9be076ea1f66b933be484d82f200b0f6c3.tar.gz gdb-88cefd9be076ea1f66b933be484d82f200b0f6c3.tar.bz2 |
gdb: Improve documentation comment on language_defn::print_type
Improves the comment at the declaration of language_defn::print_type.
There should be no user visible changes after this commit.
gdb/ChangeLog:
* language.h (language_defn::print_type): Add variable names in
declaration, and update header comment.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/language.h | 12 |
2 files changed, 13 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1a4a03c..6b870f5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> + * language.h (language_defn::print_type): Add variable names in + declaration, and update header comment. + +2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com> + * ada-lang.c (ada_language::demangle): Rename to... (ada_language::demangle_symbol): ...this. * c-lang.c (cplus_language::demangle): Rename to... diff --git a/gdb/language.h b/gdb/language.h index 106d766..951343f 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -333,10 +333,14 @@ struct language_defn return nullptr; } - /* Print a type using syntax appropriate for this language. */ - - virtual void print_type (struct type *, const char *, struct ui_file *, int, - int, const struct type_print_options *) const = 0; + /* Print TYPE to STREAM using syntax appropriate for this language. + LEVEL is the depth to indent lines by. VARSTRING, if not NULL or the + empty string, is the name of a variable and TYPE should be printed in + the form of a declaration of a variable named VARSTRING. */ + + virtual void print_type (struct type *type, const char *varstring, + struct ui_file *stream, int show, int level, + const struct type_print_options *flags) const = 0; /* PC is possibly an unknown languages trampoline. If that PC falls in a trampoline belonging to this language, return |