diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-07 08:06:50 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-04-12 14:13:10 -0400 |
commit | 71bc95ed2032567e2a7aebc3efe1c55a77abb7b2 (patch) | |
tree | df72666a77b98bda029327e1acfc5b2366ebe766 /gdb/cli | |
parent | 30bf8e1ce4498467d62387b0d8a7009e3fbe2ab1 (diff) | |
download | gdb-71bc95ed2032567e2a7aebc3efe1c55a77abb7b2.zip gdb-71bc95ed2032567e2a7aebc3efe1c55a77abb7b2.tar.gz gdb-71bc95ed2032567e2a7aebc3efe1c55a77abb7b2.tar.bz2 |
gdb: allocate subfile with new
Allocate struct subfile with new, initialize its fields instead of
memset-ing it to 0. Use a unique_ptr for the window after a subfile has
been allocated but before it is linked in the buildsym_compunit's list
of subfile (and therefore owned by the buildsym_compunit.
I can't test the change in xcoffread.c, it's best-effort. I couldn't
find where subfiles are freed in that file, I assume they were
intentionally (or not) leaked.
Change-Id: Ib3b6877de31b7e65bc466682f08dbf5840225f24
Diffstat (limited to 'gdb/cli')
0 files changed, 0 insertions, 0 deletions