aboutsummaryrefslogtreecommitdiff
path: root/gdb/language.c
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2000-07-24 05:04:19 +0000
committerAnthony Green <green@redhat.com>2000-07-24 05:04:19 +0000
commit8caabe694ff79ac1c96df1af645cec84001870d6 (patch)
tree6e65efd0c6aa7caa9abb0d9ca6922f54710daad9 /gdb/language.c
parentfd1f87b2165f395f2628750f40a8bc3663bcc0b4 (diff)
downloadgdb-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.c10
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;
}