diff options
author | John Metzler <jmetzler@cygnus> | 1998-06-03 01:27:17 +0000 |
---|---|---|
committer | John Metzler <jmetzler@cygnus> | 1998-06-03 01:27:17 +0000 |
commit | 5fed43aae9572d6a0e2383643795c04d4da46ef6 (patch) | |
tree | 73f622dc9bfe14cfbb88de6cc143667bf38cb022 /gdb/remote-nrom.c | |
parent | cfba9ab0ac88b24d8aaf2c844dcca4947de5420c (diff) | |
download | gdb-5fed43aae9572d6a0e2383643795c04d4da46ef6.zip gdb-5fed43aae9572d6a0e2383643795c04d4da46ef6.tar.gz gdb-5fed43aae9572d6a0e2383643795c04d4da46ef6.tar.bz2 |
Straggler - accidently dropped from the pack of target-ops reorg of inits
Diffstat (limited to 'gdb/remote-nrom.c')
-rw-r--r-- | gdb/remote-nrom.c | 85 |
1 files changed, 44 insertions, 41 deletions
diff --git a/gdb/remote-nrom.c b/gdb/remote-nrom.c index d67791b..d3b3d86 100644 --- a/gdb/remote-nrom.c +++ b/gdb/remote-nrom.c @@ -268,52 +268,55 @@ nrom_mourn() /* Define the target vector. */ -struct target_ops nrom_ops = { - "nrom", /* to_shortname */ - "Remote XDI `NetROM' target", /* to_longname */ - "Remote debug using a NetROM over Ethernet", /* to_doc */ - nrom_open, /* to_open */ - nrom_close, /* to_close */ - NULL, /* to_attach */ - NULL, /* to_detach */ - NULL, /* to_resume */ - NULL, /* to_wait */ - NULL, /* to_fetch_registers */ - NULL, /* to_store_registers */ - NULL, /* to_prepare_to_store */ - NULL, /* to_xfer_memory */ - NULL, /* to_files_info */ - NULL, /* to_insert_breakpoint */ - NULL, /* to_remove_breakpoint */ - NULL, /* to_terminal_init */ - NULL, /* to_terminal_inferior */ - NULL, /* to_terminal_ours_for_output */ - NULL, /* to_terminal_ours */ - NULL, /* to_terminal_info */ - nrom_kill, /* to_kill */ - nrom_load, /* to_load */ - NULL, /* to_lookup_symbol */ - NULL, /* to_create_inferior */ - nrom_mourn, /* to_mourn_inferior */ - NULL, /* to_can_run */ - 0, /* to_notice_signals */ - 0, /* to_thread_alive */ - 0, /* to_stop */ - download_stratum, /* to_stratum */ - NULL, /* to_next */ - 1, /* to_has_all_memory */ - 1, /* to_has_memory */ - 1, /* to_has_stack */ - 1, /* to_has_registers */ - 0, /* to_has_execution */ - NULL, /* sections */ - NULL, /* sections_end */ - OPS_MAGIC /* to_magic */ +struct target_ops nrom_ops ; +static void init_nrom_ops(void) +{ + nrom_ops.to_shortname = "nrom"; + nrom_ops.to_longname = "Remote XDI `NetROM' target"; + nrom_ops.to_doc = "Remote debug using a NetROM over Ethernet"; + nrom_ops.to_open = nrom_open; + nrom_ops.to_close = nrom_close; + nrom_ops.to_attach = NULL; + nrom_ops.to_detach = NULL; + nrom_ops.to_resume = NULL; + nrom_ops.to_wait = NULL; + nrom_ops.to_fetch_registers = NULL; + nrom_ops.to_store_registers = NULL; + nrom_ops.to_prepare_to_store = NULL; + nrom_ops.to_xfer_memory = NULL; + nrom_ops.to_files_info = NULL; + nrom_ops.to_insert_breakpoint = NULL; + nrom_ops.to_remove_breakpoint = NULL; + nrom_ops.to_terminal_init = NULL; + nrom_ops.to_terminal_inferior = NULL; + nrom_ops.to_terminal_ours_for_output = NULL; + nrom_ops.to_terminal_ours = NULL; + nrom_ops.to_terminal_info = NULL; + nrom_ops.to_kill = nrom_kill; + nrom_ops.to_load = nrom_load; + nrom_ops.to_lookup_symbol = NULL; + nrom_ops.to_create_inferior = NULL; + nrom_ops.to_mourn_inferior = nrom_mourn; + nrom_ops.to_can_run = NULL; + nrom_ops.to_notice_signals = 0; + nrom_ops.to_thread_alive = 0; + nrom_ops.to_stop = 0; + nrom_ops.to_stratum = download_stratum; + nrom_ops.DONT_USE = NULL; + nrom_ops.to_has_all_memory = 1; + nrom_ops.to_has_memory = 1; + nrom_ops.to_has_stack = 1; + nrom_ops.to_has_registers = 1; + nrom_ops.to_has_execution = 0; + nrom_ops.to_sections = NULL; + nrom_ops.to_sections_end = NULL; + nrom_ops.to_magic = OPS_MAGIC ; }; void _initialize_remote_nrom () { + init_nrom_ops() ; add_target (&nrom_ops); add_show_from_set ( |