diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-06-29 13:19:19 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-06-29 13:19:19 +0000 |
commit | 0c8b41f1c6ca809238df5662ea5f45e5f7a29121 (patch) | |
tree | 3f517831cb9999e62eab83261b88fca342533b2c /gdb/jv-lang.c | |
parent | 46bf50512ce837bbc53e8704dd5117db3273099b (diff) | |
download | gdb-0c8b41f1c6ca809238df5662ea5f45e5f7a29121.zip gdb-0c8b41f1c6ca809238df5662ea5f45e5f7a29121.tar.gz gdb-0c8b41f1c6ca809238df5662ea5f45e5f7a29121.tar.bz2 |
* gdbtypes.h (make_function_type): Remove OBJFILE parameter.
* gdbtypes.c (make_function_type): Remove OBJFILE parameter.
(lookup_function_type): Update call.
* stabsread.c (read_type): Likewise.
* dwarf2read.c (read_subroutine_type): Use lookup_function_type
instead of make_function_type.
* jv-lang.c (type_from_class): Likewise. Do not allocate types
on the fake "dynamics" obstack.
Diffstat (limited to 'gdb/jv-lang.c')
-rw-r--r-- | gdb/jv-lang.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/jv-lang.c b/gdb/jv-lang.c index 0003e0d..f53c656 100644 --- 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; - 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); @@ -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].type = make_function_type (java_void_type, NULL, objfile); + fn_fields[k].type = lookup_function_type (java_void_type); TYPE_CODE (fn_fields[k].type) = TYPE_CODE_METHOD; } |