gdb: fix vfork with multiple threads
[deliverable/binutils-gdb.git] / gdb / symfile-mem.c
index 914976ce72a9765e18d9f02763957f3c483f2752..cc3a777f006ea1997b4096815cb8fc1804981415 100644 (file)
@@ -1,6 +1,6 @@
 /* Reading symbol files from memory.
 
-   Copyright (C) 1986-2020 Free Software Foundation, Inc.
+   Copyright (C) 1986-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -209,14 +209,14 @@ void
 _initialize_symfile_mem ()
 {
   add_cmd ("add-symbol-file-from-memory", class_files,
-           add_symbol_file_from_memory_command,
+          add_symbol_file_from_memory_command,
           _("Load the symbols out of memory from a "
             "dynamically loaded object file.\n"
             "Give an expression for the address "
             "of the file's shared object file header."),
-           &cmdlist);
+          &cmdlist);
 
   /* Want to know of each new inferior so that its vsyscall info can
      be extracted.  */
-  gdb::observers::inferior_created.attach (add_vsyscall_page);
+  gdb::observers::inferior_created.attach (add_vsyscall_page, "symfile-mem");
 }
This page took 0.025616 seconds and 4 git commands to generate.