Straggler - accidently dropped from the pack of target-ops reorg of inits

This commit is contained in:
John Metzler 1998-06-03 01:27:17 +00:00
parent cfba9ab0ac
commit 5fed43aae9
1 changed files with 44 additions and 41 deletions

View File

@ -268,52 +268,55 @@ nrom_mourn()
/* Define the target vector. */ /* Define the target vector. */
struct target_ops nrom_ops = { struct target_ops nrom_ops ;
"nrom", /* to_shortname */ static void init_nrom_ops(void)
"Remote XDI `NetROM' target", /* to_longname */ {
"Remote debug using a NetROM over Ethernet", /* to_doc */ nrom_ops.to_shortname = "nrom";
nrom_open, /* to_open */ nrom_ops.to_longname = "Remote XDI `NetROM' target";
nrom_close, /* to_close */ nrom_ops.to_doc = "Remote debug using a NetROM over Ethernet";
NULL, /* to_attach */ nrom_ops.to_open = nrom_open;
NULL, /* to_detach */ nrom_ops.to_close = nrom_close;
NULL, /* to_resume */ nrom_ops.to_attach = NULL;
NULL, /* to_wait */ nrom_ops.to_detach = NULL;
NULL, /* to_fetch_registers */ nrom_ops.to_resume = NULL;
NULL, /* to_store_registers */ nrom_ops.to_wait = NULL;
NULL, /* to_prepare_to_store */ nrom_ops.to_fetch_registers = NULL;
NULL, /* to_xfer_memory */ nrom_ops.to_store_registers = NULL;
NULL, /* to_files_info */ nrom_ops.to_prepare_to_store = NULL;
NULL, /* to_insert_breakpoint */ nrom_ops.to_xfer_memory = NULL;
NULL, /* to_remove_breakpoint */ nrom_ops.to_files_info = NULL;
NULL, /* to_terminal_init */ nrom_ops.to_insert_breakpoint = NULL;
NULL, /* to_terminal_inferior */ nrom_ops.to_remove_breakpoint = NULL;
NULL, /* to_terminal_ours_for_output */ nrom_ops.to_terminal_init = NULL;
NULL, /* to_terminal_ours */ nrom_ops.to_terminal_inferior = NULL;
NULL, /* to_terminal_info */ nrom_ops.to_terminal_ours_for_output = NULL;
nrom_kill, /* to_kill */ nrom_ops.to_terminal_ours = NULL;
nrom_load, /* to_load */ nrom_ops.to_terminal_info = NULL;
NULL, /* to_lookup_symbol */ nrom_ops.to_kill = nrom_kill;
NULL, /* to_create_inferior */ nrom_ops.to_load = nrom_load;
nrom_mourn, /* to_mourn_inferior */ nrom_ops.to_lookup_symbol = NULL;
NULL, /* to_can_run */ nrom_ops.to_create_inferior = NULL;
0, /* to_notice_signals */ nrom_ops.to_mourn_inferior = nrom_mourn;
0, /* to_thread_alive */ nrom_ops.to_can_run = NULL;
0, /* to_stop */ nrom_ops.to_notice_signals = 0;
download_stratum, /* to_stratum */ nrom_ops.to_thread_alive = 0;
NULL, /* to_next */ nrom_ops.to_stop = 0;
1, /* to_has_all_memory */ nrom_ops.to_stratum = download_stratum;
1, /* to_has_memory */ nrom_ops.DONT_USE = NULL;
1, /* to_has_stack */ nrom_ops.to_has_all_memory = 1;
1, /* to_has_registers */ nrom_ops.to_has_memory = 1;
0, /* to_has_execution */ nrom_ops.to_has_stack = 1;
NULL, /* sections */ nrom_ops.to_has_registers = 1;
NULL, /* sections_end */ nrom_ops.to_has_execution = 0;
OPS_MAGIC /* to_magic */ nrom_ops.to_sections = NULL;
nrom_ops.to_sections_end = NULL;
nrom_ops.to_magic = OPS_MAGIC ;
}; };
void void
_initialize_remote_nrom () _initialize_remote_nrom ()
{ {
init_nrom_ops() ;
add_target (&nrom_ops); add_target (&nrom_ops);
add_show_from_set ( add_show_from_set (