diff options
author | Stan Shebs <shebs@apple.com> | 1999-04-26 18:23:13 +0000 |
---|---|---|
committer | Stan Shebs <shebs@apple.com> | 1999-04-26 18:23:13 +0000 |
commit | 9f89d263d1c0db98f6807281138f97f197f82bce (patch) | |
tree | 7f9b131d895f0b5f3d54b6348e12c7c35be93e93 /gdb/jv-typeprint.c | |
parent | 33573d8115710d3d6f407968b4420282e0422bbc (diff) | |
download | gdb-9f89d263d1c0db98f6807281138f97f197f82bce.tar.gz |
import gdb-19990422 snapshot
Diffstat (limited to 'gdb/jv-typeprint.c')
-rw-r--r-- | gdb/jv-typeprint.c | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/gdb/jv-typeprint.c b/gdb/jv-typeprint.c index 59539a0da9f..cddf758f73e 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, "<incomplete type>\n"); - else - fprintfi_filtered (level + 4, stream, "<no data fields>\n"); + { + if (TYPE_FLAGS (type) & TYPE_FLAG_STUB) + fprintfi_filtered (level + 4, stream, "<incomplete type>\n"); + else + fprintfi_filtered (level + 4, stream, "<no data fields>\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; |