convert to_stop
[deliverable/binutils-gdb.git] / gdb / target.c
index db4fed308dd748e457d3dd8bdcac792b51830adb..0432dfd06d0c31fd135ec72e479106dd7a5df0be 100644 (file)
@@ -66,10 +66,6 @@ static int nomemory (CORE_ADDR, char *, int, int, struct target_ops *);
 
 static int return_zero (void);
 
-static int return_minus_one (void);
-
-static void *return_null (void);
-
 void target_ignore (void);
 
 static void target_command (char *, int);
@@ -659,7 +655,7 @@ update_current_target (void)
       /* Do not inherit to_pid_to_str.  */
       /* Do not inherit to_extra_thread_info.  */
       /* Do not inherit to_thread_name.  */
-      INHERIT (to_stop, t);
+      /* Do not inherit to_stop.  */
       /* Do not inherit to_xfer_partial.  */
       /* Do not inherit to_rcmd.  */
       /* Do not inherit to_pid_to_exec_file.  */
@@ -689,38 +685,39 @@ update_current_target (void)
       /* Do not inherit to_supports_enable_disable_tracepoint.  */
       /* Do not inherit to_supports_string_tracing.  */
       /* Do not inherit to_trace_init.  */
-      INHERIT (to_download_tracepoint, t);
-      INHERIT (to_can_download_tracepoint, t);
-      INHERIT (to_download_trace_state_variable, t);
-      INHERIT (to_enable_tracepoint, t);
-      INHERIT (to_disable_tracepoint, t);
-      INHERIT (to_trace_set_readonly_regions, t);
-      INHERIT (to_trace_start, t);
-      INHERIT (to_get_trace_status, t);
-      INHERIT (to_get_tracepoint_status, t);
-      INHERIT (to_trace_stop, t);
-      INHERIT (to_trace_find, t);
-      INHERIT (to_get_trace_state_variable_value, t);
-      INHERIT (to_save_trace_data, t);
-      INHERIT (to_upload_tracepoints, t);
-      INHERIT (to_upload_trace_state_variables, t);
-      INHERIT (to_get_raw_trace_data, t);
-      INHERIT (to_get_min_fast_tracepoint_insn_len, t);
-      INHERIT (to_set_disconnected_tracing, t);
-      INHERIT (to_set_circular_trace_buffer, t);
-      INHERIT (to_set_trace_buffer_size, t);
-      INHERIT (to_set_trace_notes, t);
-      INHERIT (to_get_tib_address, t);
-      INHERIT (to_set_permissions, t);
-      INHERIT (to_static_tracepoint_marker_at, t);
-      INHERIT (to_static_tracepoint_markers_by_strid, t);
-      INHERIT (to_traceframe_info, t);
-      INHERIT (to_use_agent, t);
-      INHERIT (to_can_use_agent, t);
-      INHERIT (to_augmented_libraries_svr4_read, t);
+      /* Do not inherit to_download_tracepoint.  */
+      /* Do not inherit to_can_download_tracepoint.  */
+      /* Do not inherit to_download_trace_state_variable.  */
+      /* Do not inherit to_enable_tracepoint.  */
+      /* Do not inherit to_disable_tracepoint.  */
+      /* Do not inherit to_trace_set_readonly_regions.  */
+      /* Do not inherit to_trace_start.  */
+      /* Do not inherit to_get_trace_status.  */
+      /* Do not inherit to_get_tracepoint_status.  */
+      /* Do not inherit to_trace_stop.  */
+      /* Do not inherit to_trace_find.  */
+      /* Do not inherit to_get_trace_state_variable_value.  */
+      /* Do not inherit to_save_trace_data.  */
+      /* Do not inherit to_upload_tracepoints.  */
+      /* Do not inherit to_upload_trace_state_variables.  */
+      /* Do not inherit to_get_raw_trace_data.  */
+      /* Do not inherit to_get_min_fast_tracepoint_insn_len.  */
+      /* Do not inherit to_set_disconnected_tracing.  */
+      /* Do not inherit to_set_circular_trace_buffer.  */
+      /* Do not inherit to_set_trace_buffer_size.  */
+      /* Do not inherit to_set_trace_notes.  */
+      /* Do not inherit to_get_tib_address.  */
+      /* Do not inherit to_set_permissions.  */
+      /* Do not inherit to_static_tracepoint_marker_at.  */
+      /* Do not inherit to_static_tracepoint_markers_by_strid.  */
+      /* Do not inherit to_traceframe_info.  */
+      /* Do not inherit to_use_agent.  */
+      /* Do not inherit to_can_use_agent.  */
+      /* Do not inherit to_augmented_libraries_svr4_read.  */
       INHERIT (to_magic, t);
-      INHERIT (to_supports_evaluation_of_breakpoint_conditions, t);
-      INHERIT (to_can_run_breakpoint_commands, t);
+      /* Do not inherit
+        to_supports_evaluation_of_breakpoint_conditions.  */
+      /* Do not inherit to_can_run_breakpoint_commands.  */
       /* Do not inherit to_memory_map.  */
       /* Do not inherit to_flash_erase.  */
       /* Do not inherit to_flash_done.  */
@@ -748,108 +745,7 @@ update_current_target (void)
   de_fault (to_can_run,
            (int (*) (struct target_ops *))
            return_zero);
-  de_fault (to_stop,
-           (void (*) (struct target_ops *, ptid_t))
-           target_ignore);
   current_target.to_read_description = NULL;
-  de_fault (to_download_tracepoint,
-           (void (*) (struct target_ops *, struct bp_location *))
-           tcomplain);
-  de_fault (to_can_download_tracepoint,
-           (int (*) (struct target_ops *))
-           return_zero);
-  de_fault (to_download_trace_state_variable,
-           (void (*) (struct target_ops *, struct trace_state_variable *))
-           tcomplain);
-  de_fault (to_enable_tracepoint,
-           (void (*) (struct target_ops *, struct bp_location *))
-           tcomplain);
-  de_fault (to_disable_tracepoint,
-           (void (*) (struct target_ops *, struct bp_location *))
-           tcomplain);
-  de_fault (to_trace_set_readonly_regions,
-           (void (*) (struct target_ops *))
-           tcomplain);
-  de_fault (to_trace_start,
-           (void (*) (struct target_ops *))
-           tcomplain);
-  de_fault (to_get_trace_status,
-           (int (*) (struct target_ops *, struct trace_status *))
-           return_minus_one);
-  de_fault (to_get_tracepoint_status,
-           (void (*) (struct target_ops *, struct breakpoint *,
-                      struct uploaded_tp *))
-           tcomplain);
-  de_fault (to_trace_stop,
-           (void (*) (struct target_ops *))
-           tcomplain);
-  de_fault (to_trace_find,
-           (int (*) (struct target_ops *,
-                     enum trace_find_type, int, CORE_ADDR, CORE_ADDR, int *))
-           return_minus_one);
-  de_fault (to_get_trace_state_variable_value,
-           (int (*) (struct target_ops *, int, LONGEST *))
-           return_zero);
-  de_fault (to_save_trace_data,
-           (int (*) (struct target_ops *, const char *))
-           tcomplain);
-  de_fault (to_upload_tracepoints,
-           (int (*) (struct target_ops *, struct uploaded_tp **))
-           return_zero);
-  de_fault (to_upload_trace_state_variables,
-           (int (*) (struct target_ops *, struct uploaded_tsv **))
-           return_zero);
-  de_fault (to_get_raw_trace_data,
-           (LONGEST (*) (struct target_ops *, gdb_byte *, ULONGEST, LONGEST))
-           tcomplain);
-  de_fault (to_get_min_fast_tracepoint_insn_len,
-           (int (*) (struct target_ops *))
-           return_minus_one);
-  de_fault (to_set_disconnected_tracing,
-           (void (*) (struct target_ops *, int))
-           target_ignore);
-  de_fault (to_set_circular_trace_buffer,
-           (void (*) (struct target_ops *, int))
-           target_ignore);
-  de_fault (to_set_trace_buffer_size,
-           (void (*) (struct target_ops *, LONGEST))
-           target_ignore);
-  de_fault (to_set_trace_notes,
-           (int (*) (struct target_ops *,
-                     const char *, const char *, const char *))
-           return_zero);
-  de_fault (to_get_tib_address,
-           (int (*) (struct target_ops *, ptid_t, CORE_ADDR *))
-           tcomplain);
-  de_fault (to_set_permissions,
-           (void (*) (struct target_ops *))
-           target_ignore);
-  de_fault (to_static_tracepoint_marker_at,
-           (int (*) (struct target_ops *,
-                     CORE_ADDR, struct static_tracepoint_marker *))
-           return_zero);
-  de_fault (to_static_tracepoint_markers_by_strid,
-           (VEC(static_tracepoint_marker_p) * (*) (struct target_ops *,
-                                                   const char *))
-           tcomplain);
-  de_fault (to_traceframe_info,
-           (struct traceframe_info * (*) (struct target_ops *))
-           return_null);
-  de_fault (to_supports_evaluation_of_breakpoint_conditions,
-           (int (*) (struct target_ops *))
-           return_zero);
-  de_fault (to_can_run_breakpoint_commands,
-           (int (*) (struct target_ops *))
-           return_zero);
-  de_fault (to_use_agent,
-           (int (*) (struct target_ops *, int))
-           tcomplain);
-  de_fault (to_can_use_agent,
-           (int (*) (struct target_ops *))
-           return_zero);
-  de_fault (to_augmented_libraries_svr4_read,
-           (int (*) (struct target_ops *))
-           return_zero);
 
 #undef de_fault
 
@@ -3560,18 +3456,6 @@ return_zero (void)
   return 0;
 }
 
-static int
-return_minus_one (void)
-{
-  return -1;
-}
-
-static void *
-return_null (void)
-{
-  return 0;
-}
-
 /*
  * Find the next target down the stack from the specified target.
  */
This page took 0.027157 seconds and 4 git commands to generate.