* jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
authorTom Tromey <tromey@redhat.com>
Tue, 14 Jun 2011 18:44:40 +0000 (18:44 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 14 Jun 2011 18:44:40 +0000 (18:44 +0000)
commit86cc0029254e12b51a0882bd29d442b84e3861e1
tree4d72a603383ce99ac50cd93660f4794d535c3c44
parent91a81f69725a53644fb008a7066269020b8d2aa1
* jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
(class_symtab): Remove.
(jv_dynamics_progspace_key): New global.
(jv_per_objfile_free): Reset program space data.  Update assert.
Don't clear globals.
(get_dynamics_objfile): Use and set program space data.
(get_java_class_symtab): Use get_dynamics_objfile.
(add_class_symbol): Likewise.
(java_link_class_type): Likewise.
(java_object_type, jv_clear_object_type, set_java_object_type):
Remove.
(get_java_object_type): Update.  Don't cache result.
(is_object_type): Don't call set_java_object_type.
(_initialize_java_language): Don't set jv_type_objfile_data_key;
initialize jv_dynamics_progspace_key.
gdb/ChangeLog
gdb/jv-lang.c