diff options
author | Anthony Green <green@redhat.com> | 2000-07-24 05:04:19 +0000 |
---|---|---|
committer | Anthony Green <green@redhat.com> | 2000-07-24 05:04:19 +0000 |
commit | 8caabe694ff79ac1c96df1af645cec84001870d6 (patch) | |
tree | 6e65efd0c6aa7caa9abb0d9ca6922f54710daad9 /gdb/language.c | |
parent | fd1f87b2165f395f2628750f40a8bc3663bcc0b4 (diff) | |
download | gdb-8caabe694ff79ac1c96df1af645cec84001870d6.zip gdb-8caabe694ff79ac1c96df1af645cec84001870d6.tar.gz gdb-8caabe694ff79ac1c96df1af645cec84001870d6.tar.bz2 |
* language.c: Include jv-lang.h.
(lang_bool_type): Add case for java booleans.
And in testsuite...
* gdb.java/jv-exp.exp: New file.
Diffstat (limited to 'gdb/language.c')
-rw-r--r-- | gdb/language.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/language.c b/gdb/language.c index fd81f67..dc5ae40 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -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; } |