aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-11-12 17:20:39 +0000
committerTom Tromey <tromey@redhat.com>2012-11-12 17:20:39 +0000
commit6c8702eb92aa9ebaaf9367e54fa6e392d989c589 (patch)
tree6557d664073b6eef7de4b2d93d4eadabe551075d
parent79d43c6168cdc6f263988e7c2fad9d4c82b5cd42 (diff)
downloadgdb-6c8702eb92aa9ebaaf9367e54fa6e392d989c589.zip
gdb-6c8702eb92aa9ebaaf9367e54fa6e392d989c589.tar.gz
gdb-6c8702eb92aa9ebaaf9367e54fa6e392d989c589.tar.bz2
* c-typeprint.c (cp_type_print_method_args): Add flags
argument. Call c_print_type, not type_print. (c_type_print_base): Call c_print_type, not type_print. Update.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/c-typeprint.c11
2 files changed, 13 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b43cebd..5fd248f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2012-11-12 Tom Tromey <tromey@redhat.com>
+ * c-typeprint.c (cp_type_print_method_args): Add flags
+ argument. Call c_print_type, not type_print.
+ (c_type_print_base): Call c_print_type, not type_print.
+ Update.
+
+2012-11-12 Tom Tromey <tromey@redhat.com>
+
* ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
to type-printing functions.
* ada-lang.h (ada_print_type): Add argument.
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index def80b2..cb44bb0 100644
--- a/gdb/c-typeprint.c
+++ b/gdb/c-typeprint.c
@@ -166,7 +166,8 @@ cp_type_print_derivation_info (struct ui_file *stream,
static void
cp_type_print_method_args (struct type *mtype, const char *prefix,
const char *varstring, int staticp,
- struct ui_file *stream)
+ struct ui_file *stream,
+ const struct type_print_options *flags)
{
struct field *args = TYPE_FIELDS (mtype);
int nargs = TYPE_NFIELDS (mtype);
@@ -185,7 +186,7 @@ cp_type_print_method_args (struct type *mtype, const char *prefix,
{
while (i < nargs)
{
- type_print (args[i++].type, "", stream, 0);
+ c_print_type (args[i++].type, "", stream, 0, 0, flags);
if (i == nargs && varargs)
fprintf_filtered (stream, ", ...");
@@ -1058,8 +1059,8 @@ c_type_print_base (struct type *type, struct ui_file *stream,
&& !is_full_physname_constructor /* " " */
&& !is_type_conversion_operator (type, i, j))
{
- type_print (TYPE_TARGET_TYPE (TYPE_FN_FIELD_TYPE (f, j)),
- "", stream, -1);
+ c_print_type (TYPE_TARGET_TYPE (TYPE_FN_FIELD_TYPE (f, j)),
+ "", stream, -1, 0, flags);
fputs_filtered (" ", stream);
}
if (TYPE_FN_FIELD_STUB (f, j))
@@ -1093,7 +1094,7 @@ c_type_print_base (struct type *type, struct ui_file *stream,
"",
method_name,
staticp,
- stream);
+ stream, flags);
}
else
fprintf_filtered (stream,