* mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
authorTom Tromey <tromey@redhat.com>
Mon, 4 Apr 2011 15:11:19 +0000 (15:11 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 4 Apr 2011 15:11:19 +0000 (15:11 +0000)
commit30cc903e7cd4678ec556d5386be55c3c726b6a27
tree0043b2abe6ef2f26dff87b8be35be09b8f9ca025
parent0c2e60193cf41ec57f62a5640ed67e4291e8f815
* mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
(new_symtab): Don't set `free_code' on symtab.
(new_linetable): Properly handle size==0.
* symtab.h (struct symtab) <free_code, free_func>: Remove.
* symmisc.c (free_symtab): Don't free the linetable.  Don't call
free_func.
* jv-lang.c (struct jv_per_objfile_data): New.
(jv_per_objfile_free): Free the data.
(get_dynamics_objfile): Allocate a jv_per_objfile_data.
(get_java_class_symtab): Set the `dict' field on the
jv_per_objfile_data.
(free_class_block): Remove.
* buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
the symtab.
gdb/ChangeLog
gdb/buildsym.c
gdb/jv-lang.c
gdb/mdebugread.c
gdb/symmisc.c
gdb/symtab.h