1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / remote-os9k.c
index fa2e2bc295292bc6af63d2218a9d0dda56a28ce3..2abfa8376831e638678d87662c4c8c9c86475ab9 100644 (file)
@@ -547,11 +547,11 @@ get_reg_name (regno)
   if (regno < 0)
     return ("");
 /*
-  for (p = reg_names[regno]; *p; p++)
+  for (p = REGISTER_NAME (regno); *p; p++)
     *b++ = toupper(*p);
   *b = '\000';
 */
-  p = (char *)reg_names[regno];
+  p = (char *)REGISTER_NAME (regno);
   return p;
 /*
   return buf;
@@ -886,7 +886,6 @@ rombug_mourn_inferior ()
 
 #define MAX_MONITOR_BREAKPOINTS 16
 
-extern int memory_breakpoint_size;
 static CORE_ADDR breakaddr[MAX_MONITOR_BREAKPOINTS] = {0};
 
 static int
@@ -895,9 +894,12 @@ rombug_insert_breakpoint (addr, shadow)
      char *shadow;
 {
   int i;
+  CORE_ADDR bp_addr = addr;
+  int bp_size = 0;
 
   if (monitor_log)
     fprintf (log_file, "\nIn Insert_breakpoint (addr=%x)\n", addr);
+  BREAKPOINT_FROM_PC (&bp_addr, &bp_size);
 
   for (i = 0; i <= MAX_MONITOR_BREAKPOINTS; i++)
     if (breakaddr[i] == 0)
@@ -905,7 +907,7 @@ rombug_insert_breakpoint (addr, shadow)
        breakaddr[i] = addr;
        if (sr_get_debug())
          printf ("Breakpoint at %x\n", addr);
-       rombug_read_inferior_memory(addr, shadow, memory_breakpoint_size);
+       rombug_read_inferior_memory (bp_addr, shadow, bp_size);
        printf_monitor(SET_BREAK_CMD, addr);
        is_trace_mode = 0;
        expect_prompt(1);
@@ -1144,7 +1146,8 @@ struct monitor_ops rombug_cmds = {
 
 struct target_ops rombug_ops ;
 
-static void init_rombug_ops(void)
+static void 
+init_rombug_ops(void)
 {
   rombug_ops.to_shortname =   "rombug";
   rombug_ops.to_longname =   "Microware's ROMBUG debug monitor";
@@ -1153,9 +1156,13 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
     rombug_ops.to_open =   rombug_open;
   rombug_ops.to_close =   rombug_close;
   rombug_ops.to_attach =   0;
+  rombug_ops.to_post_attach = NULL;
+  rombug_ops.to_require_attach = NULL;
   rombug_ops.to_detach =   rombug_detach;
+  rombug_ops.to_require_detach = NULL;
   rombug_ops.to_resume =   rombug_resume;
   rombug_ops.to_wait  =   rombug_wait;
+  rombug_ops.to_post_wait = NULL;
   rombug_ops.to_fetch_registers  =   rombug_fetch_register;
   rombug_ops.to_store_registers  =   rombug_store_register;
   rombug_ops.to_prepare_to_store =   rombug_prepare_to_store;
@@ -1172,11 +1179,30 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
   rombug_ops.to_load  =   rombug_load;                 /* load */
   rombug_ops.to_lookup_symbol =   rombug_link;                         /* lookup_symbol */
   rombug_ops.to_create_inferior =   rombug_create_inferior;
+  rombug_ops.to_post_startup_inferior = NULL;
+  rombug_ops.to_acknowledge_created_inferior = NULL;
+  rombug_ops.to_clone_and_follow_inferior = NULL;
+  rombug_ops.to_post_follow_inferior_by_clone = NULL;
+  rombug_ops.to_insert_fork_catchpoint = NULL;
+  rombug_ops.to_remove_fork_catchpoint = NULL;
+  rombug_ops.to_insert_vfork_catchpoint = NULL;
+  rombug_ops.to_remove_vfork_catchpoint = NULL;
+  rombug_ops.to_has_forked = NULL;
+  rombug_ops.to_has_vforked = NULL;
+  rombug_ops.to_can_follow_vfork_prior_to_exec = NULL;
+  rombug_ops.to_post_follow_vfork = NULL;
+  rombug_ops.to_insert_exec_catchpoint = NULL;
+  rombug_ops.to_remove_exec_catchpoint = NULL;
+  rombug_ops.to_has_execd = NULL;
+  rombug_ops.to_reported_exec_events_per_exec_call = NULL;
+  rombug_ops.to_has_exited = NULL;
   rombug_ops.to_mourn_inferior =   rombug_mourn_inferior;
   rombug_ops.to_can_run  =   0;                                /* can_run */
   rombug_ops.to_notice_signals =   0;                          /* notice_signals */
   rombug_ops.to_thread_alive  =   0;
   rombug_ops.to_stop  =   0;                           /* to_stop */
+  rombug_ops.to_pid_to_exec_file = NULL;
+  rombug_ops.to_core_file_to_sym_file = NULL;
   rombug_ops.to_stratum =   process_stratum;
   rombug_ops.DONT_USE =   0;                           /* next */
   rombug_ops.to_has_all_memory =   1;
This page took 0.024171 seconds and 4 git commands to generate.