* language.c: Include jv-lang.h.

(lang_bool_type): Add case for java booleans.

And in testsuite...

	* gdb.java/jv-exp.exp: New file.
This commit is contained in:
Anthony Green 2000-07-24 05:04:19 +00:00
parent fd1f87b216
commit 8caabe694f
4 changed files with 85 additions and 0 deletions

View 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;
}