Clear rust_unions in rust_union_quirks
authorTom Tromey <tom@tromey.com>
Mon, 14 May 2018 15:34:00 +0000 (09:34 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 14 May 2018 15:36:56 +0000 (09:36 -0600)
commit2d79090eabe8aa972b07cb71a3dd73ef9498acfa
tree073c76baa38fb17dd45736ae08c34600074f37ab
parent864bb26cb34ce6f0a85f83ed38757d5512d07b2a
Clear rust_unions in rust_union_quirks

It turns out that a dwarf2_cu can remain allocated after psymtab
expansion is done, and so it makes sense to clear rust_unions when
done processing it.

Tested on x86-64 Fedora 27.

2018-05-14  Tom Tromey  <tom@tromey.com>

* dwarf2read.c (rust_union_quirks): Clear rust_unions.
gdb/ChangeLog
gdb/dwarf2read.c