forked from Imagelibrary/binutils-gdb
gdb: pass program space to objfile::make
Make the current program space reference bubble up one level. Change-Id: Iee8b11c853c76e539c991c4785737c69e6a1925c Approved-By: Tom Tromey <tom@tromey.com> Reviewed-By: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
This commit is contained in:
committed by
Simon Marchi
parent
da877546db
commit
8991986e24
@@ -442,8 +442,8 @@ add_separate_debug_objfile (struct objfile *objfile, struct objfile *parent)
|
||||
/* See objfiles.h. */
|
||||
|
||||
objfile *
|
||||
objfile::make (gdb_bfd_ref_ptr bfd_, const char *name_, objfile_flags flags_,
|
||||
objfile *parent)
|
||||
objfile::make (gdb_bfd_ref_ptr bfd_, program_space *pspace, const char *name_,
|
||||
objfile_flags flags_, objfile *parent)
|
||||
{
|
||||
objfile *result
|
||||
= new objfile (std::move (bfd_), current_program_space, name_, flags_);
|
||||
|
||||
Reference in New Issue
Block a user