Remove exec_filename macro
authorTom Tromey <tom@tromey.com>
Thu, 29 Oct 2020 21:04:33 +0000 (15:04 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 29 Oct 2020 21:04:34 +0000 (15:04 -0600)
commitc20cb6860c27d6ef15a1e561f4be78e7b85952ac
tree87ba30d6af5da7628ff5d0b5aeac363a30f0eb30
parent6be2a9ab1fba5f876c8cb2566280c5e4e6959d6e
Remove exec_filename macro

This removes the exec_filename macro, replacing it with uses of the
member of current_program_space.  This also renames that member, and
changes it to be a unique pointer.

gdb/ChangeLog
2020-10-29  Tom Tromey  <tom@tromey.com>

* progspace.h (struct program_space) <exec_filename>: Rename from
pspace_exec_filename.  Now a unique_xmalloc_ptr.
* inferior.c (print_selected_inferior): Update.
(print_inferior): Update.
* mi/mi-main.c (print_one_inferior): Update.
* exec.h (exec_filename): Remove macro.
* corefile.c (get_exec_file): Update.
* exec.c (exec_close): Update.
(exec_file_attach): Update.
* progspace.c (clone_program_space): Update.
(print_program_space): Update.
gdb/ChangeLog
gdb/corefile.c
gdb/exec.c
gdb/exec.h
gdb/inferior.c
gdb/mi/mi-main.c
gdb/progspace.c
gdb/progspace.h
This page took 0.027217 seconds and 4 git commands to generate.