projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* gdbtypes.h (make_function_type): Remove OBJFILE parameter.
[deliverable/binutils-gdb.git]
/
gdb
/
jv-lang.c
diff --git
a/gdb/jv-lang.c
b/gdb/jv-lang.c
index 0003e0d399bf84d42881be5493fa5606317e1edd..f53c656f68373246085232c902727b8dd0e25d7a 100644
(file)
--- a/
gdb/jv-lang.c
+++ b/
gdb/jv-lang.c
@@
-302,7
+302,10
@@
type_from_class (struct value *clas)
if (type != NULL)
return type;
if (type != NULL)
return type;
- type = alloc_type (objfile);
+ /* Do not use the "fake" dynamics objfile to own dynamically generated
+ types, as it does not provide an architecture, and it would not help
+ manage the lifetime of these types anyway. */
+ type = alloc_type (NULL);
TYPE_CODE (type) = TYPE_CODE_STRUCT;
INIT_CPLUS_SPECIFIC (type);
TYPE_CODE (type) = TYPE_CODE_STRUCT;
INIT_CPLUS_SPECIFIC (type);
@@
-560,7
+563,7
@@
java_link_class_type (struct type *type, struct value *clas)
fn_fields[k].physname = "";
fn_fields[k].is_stub = 1;
/* FIXME */
fn_fields[k].physname = "";
fn_fields[k].is_stub = 1;
/* FIXME */
- fn_fields[k].type =
make_function_type (java_void_type, NULL, objfil
e);
+ fn_fields[k].type =
lookup_function_type (java_void_typ
e);
TYPE_CODE (fn_fields[k].type) = TYPE_CODE_METHOD;
}
TYPE_CODE (fn_fields[k].type) = TYPE_CODE_METHOD;
}
This page took
0.023302 seconds
and
4
git commands to generate.