* language.c: Include jv-lang.h.
[deliverable/binutils-gdb.git] / gdb / language.c
index fd81f6738c97ad846f489599aac741569882ad0d..dc5ae408439eff566b83388cbe1d2c22a369b845 100644 (file)
@@ -41,6 +41,7 @@
 #include "language.h"
 #include "target.h"
 #include "parser-defs.h"
+#include "jv-lang.h"
 
 extern void _initialize_language (void);
 
@@ -986,6 +987,15 @@ lang_bool_type ()
            return type;
        }
       return builtin_type_bool;
+    case language_java:
+      sym = lookup_symbol ("boolean", NULL, VAR_NAMESPACE, NULL, NULL);
+      if (sym)
+       {
+         type = SYMBOL_TYPE (sym);
+         if (type && TYPE_CODE (type) == TYPE_CODE_BOOL)
+           return type;
+       }
+      return java_boolean_type;
     default:
       return builtin_type_int;
     }
This page took 0.02439 seconds and 4 git commands to generate.