diff options
author | Tom Tromey <tom@tromey.com> | 2020-10-29 15:04:33 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-10-29 15:04:37 -0600 |
commit | 19f6550ebbc922f88026c5c7ebeb04019d47cac2 (patch) | |
tree | f91c94262757e994e4074118d041bae0a687e94b /gdb/exec.c | |
parent | 7e10abd146dbd17dc1b4e9701210e5724df2b2b0 (diff) | |
download | gdb-19f6550ebbc922f88026c5c7ebeb04019d47cac2.zip gdb-19f6550ebbc922f88026c5c7ebeb04019d47cac2.tar.gz gdb-19f6550ebbc922f88026c5c7ebeb04019d47cac2.tar.bz2 |
Change program_space::ebfd to a gdb_bfd_ref_ptr
This changes program_space::ebfd to a gdb_bfd_ref_ptr, removing some
manual management.
gdb/ChangeLog
2020-10-29 Tom Tromey <tom@tromey.com>
* exec.c (exec_file_attach): Update.
* progspace.c (program_space::exec_close): Update.
* progspace.h (struct program_space) <ebfd>: Now a
gdb_bfd_ref_ptr.
<set_exec_bfd>: Change argument type.
<exec_bfd>: Update.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -453,7 +453,7 @@ exec_file_attach (const char *filename, int from_tty) FOPEN_RUB, scratch_chan); else temp = gdb_bfd_open (canonical_pathname, gnutarget, scratch_chan); - current_program_space->set_exec_bfd (temp.release ()); + current_program_space->set_exec_bfd (std::move (temp)); if (!current_program_space->exec_bfd ()) { |