struct agent_expr *expr;
};
-/* An 'L' (collect static trace data) action. */
-struct collect_static_trace_data_action
-{
- struct tracepoint_action base;
-};
-
#ifndef IN_PROCESS_AGENT
static CORE_ADDR
m_tracepoint_action_download (const struct tracepoint_action *action)
return agent_expr_send (buffer, eaction->expr);
}
-static CORE_ADDR
-l_tracepoint_action_download (const struct tracepoint_action *action)
-{
- CORE_ADDR ipa_action
- = target_malloc (sizeof (struct collect_static_trace_data_action));
-
- target_write_memory (ipa_action, (unsigned char *) action,
- sizeof (struct collect_static_trace_data_action));
-
- return ipa_action;
-}
-
-static char *
-l_tracepoint_action_send (char *buffer, const struct tracepoint_action *action)
-{
- return buffer;
-}
-
static char *
tracepoint_action_send (char *buffer, const struct tracepoint_action *action)
{
return r_tracepoint_action_send (buffer, action);
case 'X':
return x_tracepoint_action_send (buffer, action);
- case 'L':
- return l_tracepoint_action_send (buffer, action);
}
error ("Unknown trace action '%c'.", action->type);
}
return r_tracepoint_action_download (action);
case 'X':
return x_tracepoint_action_download (action);
- case 'L':
- return l_tracepoint_action_download (action);
}
error ("Unknown trace action '%c'.", action->type);
}
++act;
break;
}
- case 'L':
- {
- struct collect_static_trace_data_action *raction =
- XNEW (struct collect_static_trace_data_action);
-
- raction->base.type = *act;
- action = &raction->base;
-
- trace_debug ("Want to collect static trace data");
- ++act;
- break;
- }
case 'S':
trace_debug ("Unexpected step action, ignoring");
++act;
}
}
break;
- case 'L':
- {
- trace_debug ("warning: collecting static trace data, "
- "but static tracepoints are not supported");
- }
- break;
default:
trace_debug ("unknown trace action '%c', ignoring", taction->type);
break;