diff options
Diffstat (limited to 'gdb/symfile-mem.c')
-rw-r--r-- | gdb/symfile-mem.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/symfile-mem.c b/gdb/symfile-mem.c index 92672d7..9bf79f7 100644 --- a/gdb/symfile-mem.c +++ b/gdb/symfile-mem.c @@ -166,8 +166,8 @@ add_vsyscall_page (inferior *inf) { struct bfd *bfd; - if (current_program_space->core_bfd () != nullptr) - bfd = current_program_space->core_bfd (); + if (get_inferior_core_bfd (current_inferior ()) != nullptr) + bfd = get_inferior_core_bfd (current_inferior ()); else if (current_program_space->exec_bfd () != nullptr) bfd = current_program_space->exec_bfd (); else @@ -204,9 +204,7 @@ add_vsyscall_page (inferior *inf) } } -void _initialize_symfile_mem (); -void -_initialize_symfile_mem () +INIT_GDB_FILE (symfile_mem) { add_cmd ("add-symbol-file-from-memory", class_files, add_symbol_file_from_memory_command, |