Rename traceframe_info variable to current_traceframe_info

... so it doesn't shadow the traceframe_info type.  It think it's a
clearer name anyway.

gdb/ChangeLog:

	* tracepoint.c (traceframe_info): Rename to...
	(current_traceframe_info): ...this.
	(clear_traceframe_info): Adjust.
	(get_traceframe_info): Adjust.
This commit is contained in:
Simon Marchi 2017-10-14 08:41:01 -04:00 committed by Simon Marchi
parent b129dcac88
commit 8d3c73ef6b
2 changed files with 13 additions and 6 deletions

View file

@ -1,3 +1,10 @@
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> 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
* nat/linux-osdata.c: Include algorithm. * nat/linux-osdata.c: Include algorithm.

View file

@ -133,7 +133,7 @@ static int tracepoint_number;
yet attempted to fetch it, or if the target does not support yet attempted to fetch it, or if the target does not support
fetching this object, or if we're not inspecting a traceframe fetching this object, or if we're not inspecting a traceframe
presently. */ presently. */
static struct traceframe_info *traceframe_info; static struct traceframe_info *current_traceframe_info;
/* Tracing command lists. */ /* Tracing command lists. */
static struct cmd_list_element *tfindlist; static struct cmd_list_element *tfindlist;
@ -211,8 +211,8 @@ free_traceframe_info (struct traceframe_info *info)
static void static void
clear_traceframe_info (void) clear_traceframe_info (void)
{ {
free_traceframe_info (traceframe_info); free_traceframe_info (current_traceframe_info);
traceframe_info = NULL; current_traceframe_info = NULL;
} }
/* Set traceframe number to NUM. */ /* Set traceframe number to NUM. */
@ -4101,10 +4101,10 @@ parse_traceframe_info (const char *tframe_info)
struct traceframe_info * struct traceframe_info *
get_traceframe_info (void) get_traceframe_info (void)
{ {
if (traceframe_info == NULL) if (current_traceframe_info == NULL)
traceframe_info = target_traceframe_info (); 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 /* If the target supports the query, return in RESULT the set of