From 7a292a7adf506b866905b06b3024c0fd411c4583 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Mon, 26 Apr 1999 18:34:20 +0000 Subject: import gdb-19990422 snapshot --- gdb/jv-typeprint.c | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'gdb/jv-typeprint.c') diff --git a/gdb/jv-typeprint.c b/gdb/jv-typeprint.c index 59539a0..cddf758 100644 --- a/gdb/jv-typeprint.c +++ b/gdb/jv-typeprint.c @@ -26,6 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "jv-lang.h" #include "gdb_string.h" #include "typeprint.h" +#include "c-lang.h" static void java_type_print_derivation_info (stream, type) @@ -147,10 +148,12 @@ java_type_print_base (type, stream, show, level) fprintf_filtered (stream, "{\n"); if ((TYPE_NFIELDS (type) == 0) && (TYPE_NFN_FIELDS (type) == 0)) - if (TYPE_FLAGS (type) & TYPE_FLAG_STUB) - fprintfi_filtered (level + 4, stream, "\n"); - else - fprintfi_filtered (level + 4, stream, "\n"); + { + if (TYPE_FLAGS (type) & TYPE_FLAG_STUB) + fprintfi_filtered (level + 4, stream, "\n"); + else + fprintfi_filtered (level + 4, stream, "\n"); + } /* If there is a base class for this type, do not print the field that it occupies. */ @@ -171,12 +174,14 @@ java_type_print_base (type, stream, show, level) print_spaces_filtered (level + 4, stream); if (HAVE_CPLUS_STRUCT (type)) - if (TYPE_FIELD_PROTECTED (type, i)) - fprintf_filtered (stream, "protected "); - else if (TYPE_FIELD_PRIVATE (type, i)) - fprintf_filtered (stream, "private "); - else - fprintf_filtered (stream, "public "); + { + if (TYPE_FIELD_PROTECTED (type, i)) + fprintf_filtered (stream, "protected "); + else if (TYPE_FIELD_PRIVATE (type, i)) + fprintf_filtered (stream, "private "); + else + fprintf_filtered (stream, "public "); + } if (TYPE_FIELD_STATIC (type, i)) fprintf_filtered (stream, "static "); @@ -313,6 +318,9 @@ java_type_print_base (type, stream, show, level) /* LEVEL is the depth to indent lines by. */ +extern void +c_type_print_varspec_suffix PARAMS ((struct type *, GDB_FILE *, int, int, int)); + void java_print_type (type, varstring, stream, show, level) struct type *type; -- cgit v1.1