+2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * tracepoint.c (traceframe_info): Rename to...
+ (current_traceframe_info): ...this.
+ (clear_traceframe_info): Adjust.
+ (get_traceframe_info): Adjust.
+
2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
* nat/linux-osdata.c: Include algorithm.
yet attempted to fetch it, or if the target does not support
fetching this object, or if we're not inspecting a traceframe
presently. */
-static struct traceframe_info *traceframe_info;
+static struct traceframe_info *current_traceframe_info;
/* Tracing command lists. */
static struct cmd_list_element *tfindlist;
static void
clear_traceframe_info (void)
{
- free_traceframe_info (traceframe_info);
- traceframe_info = NULL;
+ free_traceframe_info (current_traceframe_info);
+ current_traceframe_info = NULL;
}
/* Set traceframe number to NUM. */
struct traceframe_info *
get_traceframe_info (void)
{
- if (traceframe_info == NULL)
- traceframe_info = target_traceframe_info ();
+ if (current_traceframe_info == NULL)
+ current_traceframe_info = target_traceframe_info ();
- return traceframe_info;
+ return current_traceframe_info;
}
/* If the target supports the query, return in RESULT the set of