aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracefile.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2016-12-02 10:16:51 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2016-12-02 10:17:58 -0500
commite5a873b7071d74320d4e0cbbc2f358dcf2322557 (patch)
treeda3153ede4428b93399ef7971ba90dfb602a67c5 /gdb/tracefile.c
parentfe6fae079099c0eeb3186086d6b150800c0e8770 (diff)
downloadgdb-e5a873b7071d74320d4e0cbbc2f358dcf2322557.zip
gdb-e5a873b7071d74320d4e0cbbc2f358dcf2322557.tar.gz
gdb-e5a873b7071d74320d4e0cbbc2f358dcf2322557.tar.bz2
Rename some trace functions
This patch renames a few trace-related functions, so that they adhere to the de facto standard of naming command entry point functions <command>_command. I like the ease of looking up a command entry point if they all follow that rule. An enum label "tstop_command" conflicts with a new function name, so I renamed this one trace_stop_command. In v2: - Rename functions of the trace_find family, as well as trace_dump_command. gdb/ChangeLog: * tracefile-tfile.c (tfile_write_status): Adjust to renames. * tracefile.c (trace_save_command): Rename to... (tsave_command): ...this. (_initialize_tracefile): Adjust to renames. * tracepoint.c (trace_actions_command): Rename to... (actions_command): ...this. (trace_start_command): Rename to... (tstart_command): ...this, and adjust to renames.. (trace_stop_command): Rename to... (tstop_command): ...this. (trace_status_command): Rename to... (tstatus_command): ...this, and adjust to renames. (trace_find_command): Rename to... (tfind_command): ...this. (trace_find_pc_command): Rename to... (tfind_pc_command): ...this. (trace_find_tracepoint_command): Rename to... (tfind_tracepoint_command): ...this. (trace_find_line_command): Rename to... (tfind_line_command): ...this. (trace_find_range_command): Rename to... (tfind_range_command): ...this. (trace_find_outside_command): Rename to... (tfind_outside_command): ...this. (trace_dump_command): Rename to... (tdump_command): ...this. (tfind_1): Adjust to renames. (trace_find_end_command): Rename to... (tfind_end_command): ...this, and adjust to renames.. (trace_status_mi): Adjust to renames. (parse_trace_status): Adjust to renames. (_initialize_tracepoint): Adjust to renames. * tracepoint.h (enum trace_stop_reason) <tstop_command>: Rename to... <trace_stop_command>: ...this.
Diffstat (limited to 'gdb/tracefile.c')
-rw-r--r--gdb/tracefile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tracefile.c b/gdb/tracefile.c
index 56fb0d2..9aacdb7 100644
--- a/gdb/tracefile.c
+++ b/gdb/tracefile.c
@@ -306,7 +306,7 @@ trace_save (const char *filename, struct trace_file_writer *writer,
}
static void
-trace_save_command (char *args, int from_tty)
+tsave_command (char *args, int from_tty)
{
int target_does_save = 0;
char **argv;
@@ -500,7 +500,7 @@ extern initialize_file_ftype _initialize_tracefile;
void
_initialize_tracefile (void)
{
- add_com ("tsave", class_trace, trace_save_command, _("\
+ add_com ("tsave", class_trace, tsave_command, _("\
Save the trace data to a file.\n\
Use the '-ctf' option to save the data to CTF format.\n\
Use the '-r' option to direct the target to save directly to the file,\n\