mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-28 06:03:00 +08:00
* 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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user