/* Initialize the SPU multi-architecture support target. */ static void init_spu_ops (void) { spu_ops.to_shortname = "spu"; spu_ops.to_longname = "SPU multi-architecture support."; spu_ops.to_doc = "SPU multi-architecture support."; spu_ops.to_mourn_inferior = spu_mourn_inferior; spu_ops.to_fetch_registers = spu_fetch_registers; spu_ops.to_store_registers = spu_store_registers; spu_ops.to_xfer_partial = spu_xfer_partial; spu_ops.to_search_memory = spu_search_memory; spu_ops.to_region_ok_for_hw_watchpoint = spu_region_ok_for_hw_watchpoint; spu_ops.to_thread_architecture = spu_thread_architecture; spu_ops.to_stratum = arch_stratum; spu_ops.to_magic = OPS_MAGIC; } extern void _initialize_spu_multiarch(void); /* -Wmissing-prototypes */ void _initialize_spu_multiarch(void) { /* Install ourselves on the target stack. */ init_spu_ops (); add_target (&spu_ops); /* Install observers to watch for SPU objects. */ observer_attach_inferior_created (spu_multiarch_inferior_created); observer_attach_solib_loaded (spu_multiarch_solib_loaded); observer_attach_solib_unloaded (spu_multiarch_solib_unloaded); }
void _initialize_symfile_mem (void) { add_cmd ("add-symbol-file-from-memory", class_files, 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); /* Want to know of each new inferior so that its vsyscall info can be extracted. */ observer_attach_inferior_created (add_vsyscall_page); }