convert to_set_trace_notes
[deliverable/binutils-gdb.git] / gdb / target.c
index 9ef0762f967443ea24ab1e15fc098bb2cd665fbe..e0b5efbfd2faa0585a3f4b647fcb97cbd582cdab 100644 (file)
@@ -66,8 +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);
@@ -700,16 +698,16 @@ update_current_target (void)
       /* Do not inherit to_get_tracepoint_status.  */
       /* Do not inherit to_trace_stop.  */
       /* Do not inherit to_trace_find.  */
-      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);
+      /* 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.  */
       INHERIT (to_get_tib_address, t);
       INHERIT (to_set_permissions, t);
       INHERIT (to_static_tracepoint_marker_at, t);
@@ -752,37 +750,6 @@ update_current_target (void)
            (void (*) (struct target_ops *, ptid_t))
            target_ignore);
   current_target.to_read_description = NULL;
-  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);
@@ -3525,12 +3492,6 @@ return_zero (void)
   return 0;
 }
 
-static int
-return_minus_one (void)
-{
-  return -1;
-}
-
 static void *
 return_null (void)
 {
This page took 0.026453 seconds and 4 git commands to generate.