]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Allocate compunit_symtab on heap
authorTom Tromey <tom@tromey.com>
Mon, 15 Sep 2025 22:46:25 +0000 (16:46 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 11 Oct 2025 19:27:10 +0000 (13:27 -0600)
commit23e3008c3eadd2825ebbd7953a894cfd58f89e12
tree610e5d09c732e2bd4c4ab2c2dfdeaabf8b335d2d
parent6b0581fc925ab807647a0ff38f7f015bf94c0eb0
Allocate compunit_symtab on heap

This patch changes compunit_symtab to be allocated on the heap, using
'new'.  It also changes the container that holds these in the objfile.
I chose to use an intrusive_list to store compunit_symtab because I
think pointer stability is needed here.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33435
Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/buildsym.c
gdb/buildsym.h
gdb/jit.c
gdb/mdebugread.c
gdb/objfiles.c
gdb/objfiles.h
gdb/symfile.c
gdb/symfile.h
gdb/symmisc.c
gdb/symtab.c
gdb/symtab.h