Transfer module ownership to do_module_cleanup
authorTom Tromey <tom@tromey.com>
Wed, 23 Sep 2020 15:32:54 +0000 (09:32 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 23 Sep 2020 15:32:56 +0000 (09:32 -0600)
commite616f60a6bc233acdb9ad1c37833a976f21aecec
treec3e1f6866374fdf973167ef34ee18b88dacd31da
parente947a8482ac8ea529869c15b6949e4f19272c747
Transfer module ownership to do_module_cleanup

This changes the do_module_cleanup structure to simply hold on to the
module itself.  This lets us remove most members from
do_module_cleanup.

gdb/ChangeLog
2020-09-23  Tom Tromey  <tom@tromey.com>

* compile/compile-object-run.c (struct do_module_cleanup): Add
parameters to constructor.  Update destructor.
<source_file, scope, scope_data, out_value_type, out_value_addr,
munmap_list_head, objfile_name_string>: Remove.
<module>: New member.
(do_module_cleanup): Update.
(compile_object_run): Update.
gdb/ChangeLog
gdb/compile/compile-object-run.c