* jv-lang.c (jv_dynamics_objfile_data_key)
authorTom Tromey <tromey@redhat.com>
Fri, 19 Mar 2010 19:08:41 +0000 (19:08 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 19 Mar 2010 19:08:41 +0000 (19:08 +0000)
commit20781792668b79372f059ecb51fa5d61a1a43f84
tree00c07528d6aa69da9d521264f3b92d3a9cafcff3
parentcf3e25cabf6d6e9ead2bc82719d560020ef0740b
* jv-lang.c (jv_dynamics_objfile_data_key)
(jv_type_objfile_data_key): New globals.
(class_symtab): Move earlier.
(jv_per_objfile_free): New function.
(get_dynamics_objfile): Call set_objfile_data.  Add 'gdbarch'
parameter.
Remove ancient #if 1.
(add_class_symbol): Remove redundant declaration.
(java_lookup_class): Use alloc_type, not alloc_type_arch.
(java_link_class_type): Mark as static.  Update.
(jv_clear_object_type): New function.
(set_java_object_type): Likewise.
(get_java_object_type): Use set_java_object_type.
(is_object_type): Likewise.
(_initialize_java_language): Register new objfile keys.
(get_java_class_symtab): Add 'gdbarch' parameter.
(add_class_symtab_symbol): Update.
(type_from_class): Update.
gdb/ChangeLog
gdb/jv-lang.c