diff options
author | Tom Tromey <tom@tromey.com> | 2018-06-29 15:10:04 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-17 09:30:57 -0600 |
commit | 4735f0edf4265e3e260e10a12921baf17987a020 (patch) | |
tree | 604964b377908123bd4150079aeec3dc10611365 /gdb/gdb.gdb | |
parent | 0909f342a21207c0b096e8caa7462b1c6809298e (diff) | |
download | gdb-4735f0edf4265e3e260e10a12921baf17987a020.zip gdb-4735f0edf4265e3e260e10a12921baf17987a020.tar.gz gdb-4735f0edf4265e3e260e10a12921baf17987a020.tar.bz2 |
Use scoped_free_pendings in coff_symtab_read
PR gdb/18624 concerns an assertion failure that occurs when setting a
breakpoint in a Go program on Windows.
What happens here is that coff_symtab_read uses buildsym but does not
instantiate scoped_free_pendings. So, the struct pending objects are
never released. Later, dwarf2read.c calls buildsym_init, which
asserts.
This patch fixes the problem by instantiating scoped_free_pendings in
coff_symtab_read.
Tested using the test executable from the PR. I don't know how to
test this more fully.
gdb/ChangeLog
2018-07-17 Tom Tromey <tom@tromey.com>
PR gdb/18624:
* coffread.c (coff_symtab_read): Use scoped_free_pendings.
Diffstat (limited to 'gdb/gdb.gdb')
0 files changed, 0 insertions, 0 deletions