forked from Imagelibrary/binutils-gdb
gdb/
Make specifiable the make_function_type type memory ownership. * gdbtypes.c (make_function_type): New parameter `objfile', use it explicitely instead of TYPE-initialized removed local variable `objfile'. Describe `objfile' it in the function comment. (lookup_function_type): Update make_function_type callers. * gdbtypes.h (make_function_type): Update the prototype. * jv-lang.c (java_link_class_type): Update make_function_type callers. * dwarf2read.c (read_subroutine_type): Likewise. * stabsread.c (read_type): Likewise.
This commit is contained in:
@@ -557,7 +557,8 @@ java_link_class_type (struct type *type, struct value *clas)
|
||||
}
|
||||
fn_fields[k].physname = "";
|
||||
fn_fields[k].is_stub = 1;
|
||||
fn_fields[k].type = make_function_type (java_void_type, NULL); /* FIXME */
|
||||
/* FIXME */
|
||||
fn_fields[k].type = make_function_type (java_void_type, NULL, objfile);
|
||||
TYPE_CODE (fn_fields[k].type) = TYPE_CODE_METHOD;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user