diff options
Diffstat (limited to 'gdb/windows-tdep.c')
-rw-r--r-- | gdb/windows-tdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/windows-tdep.c b/gdb/windows-tdep.c index 5f2b10a..50858f5 100644 --- a/gdb/windows-tdep.c +++ b/gdb/windows-tdep.c @@ -912,12 +912,13 @@ windows_solib_create_inferior_hook (int from_tty) } /* Rebase executable if the base address changed because of ASLR. */ - if (symfile_objfile != nullptr && exec_base != 0) + if (current_program_space->symfile_object_file != nullptr && exec_base != 0) { CORE_ADDR vmaddr = pe_data (current_program_space->exec_bfd ())->pe_opthdr.ImageBase; if (vmaddr != exec_base) - objfile_rebase (symfile_objfile, exec_base - vmaddr); + objfile_rebase (current_program_space->symfile_object_file, + exec_base - vmaddr); } } |