Rename some command functions
This patch renames a few functions implementing CLI commands to follow the style <command-name>_command, so that they are easier to search for. gdb/ChangeLog: * breakpoint.c (breakpoints_info): Rename to ... (info_breakpoints_command): ... this. (watchpoints_info): Rename to ... (info_watchpoints_command): ... this. (tracepoints_info): Rename to ... (info_tracepoints_command): ... this. (_initialize_breakpoint): Adjust. * dcache.c (dcache_info): Rename to ... (info_display_command): ... this. (_initialize_dcache): Adjust. * frame.h (args_info): Rename to ... (info_args_command): ... this. (locals_info): Rename to ... (info_locals_command): ... this. * infcmd.c (nofp_registers_info): Rename to ... (info_registers_command): ... this. (float_info): Rename to ... (info_float_command): ... this. (program_info): Rename to ... (info_program_command): ... this. (all_registers_info): Rename to ... (info_all_registers_command): ... this. (vector_info): Rename to ... (info_vector_command): ... this. (float_info): Rename to ... (info_float_command): ... this. (_initialize_infcmd): Adjust. * inferior.h (term_info): Rename to ... (info_terminal_command): ... this. * inflow.c (term_info): Rename to ... (info_terminal_command): ... this. (_initialize_inflow): Adjust. * infrun.c (signals_info): Rename to ... (info_signals_command): ... this. (_initialize_infrun): Adjust. * objc-lang.c (classes_info): Rename to ... (info_classes_command): ... this. (selectors_info): Rename to ... (info_selectors_command): ... this. (_initialize_objc_language): Adjust. * printcmd.c (sym_info): Rename to ... (info_symbol_command): ... this. (address_info): Rename to ... (info_address_command): ... this. (display_info): Rename to ... (info_display_command): ... this. (_initialize_printcmd): Adjust. * reverse.c (bookmarks_info): Rename to ... (info_breakpoints_command): ... this. (_initialize_reverse): Adjust. * ser-go32.c (dos_info): Rename to ... (info_serial_command): ... this. (_initialize_ser_dos): Adjust. * skip.c (skip_info): Rename to ... (info_skip_command): ... this. (_initialize_step_skip): Adjust. * source.c (line_info): Rename to ... (info_line_command): ... this. (source_info): Rename to ... (info_source_command) * stack.c (frame_info): Rename to ... (info_frame_command): ... this. (locals_info): Rename to ... (info_locals_command): ... this. (args_info): Rename to ... (info_args_command): ... this. (_initialize_stack): Adjust. * symtab.c (sources_info): Rename to ... (info_sources_command): ... this. (variables_info): Rename to ... (info_variables_command): ... this. (functions_info): Rename to ... (info_functions_command): ... this. (types_info): Rename to ... (info_types_command): ... this. (_initialize_symtab): Adjust. * target.c (target_info): Rename to ... (info_target_command): ... this. (initialize_targets): Adjust. * tracepoint.c (tvariables_info): Rename to ... (info_tvariables_command): ... this. (scope_info): Rename to ... (info_scope_command): ... this. (trace_dump_actions): Adjust. (_initialize_tracepoint): Adjust.
This commit is contained in:
parent
8dfb7cbf84
commit
11db943032
18 changed files with 169 additions and 81 deletions
12
gdb/stack.c
12
gdb/stack.c
|
@ -1396,7 +1396,7 @@ parse_frame_specification (const char *frame_exp, int *selected_frame_p)
|
|||
ADDR_EXP. Absolutely all information in the frame is printed. */
|
||||
|
||||
static void
|
||||
frame_info (char *addr_exp, int from_tty)
|
||||
info_frame_command (char *addr_exp, int from_tty)
|
||||
{
|
||||
struct frame_info *fi;
|
||||
struct symtab_and_line sal;
|
||||
|
@ -2132,7 +2132,7 @@ print_frame_local_vars (struct frame_info *frame, int num_tabs,
|
|||
}
|
||||
|
||||
void
|
||||
locals_info (char *args, int from_tty)
|
||||
info_locals_command (char *args, int from_tty)
|
||||
{
|
||||
print_frame_local_vars (get_selected_frame (_("No frame selected.")),
|
||||
0, gdb_stdout);
|
||||
|
@ -2214,7 +2214,7 @@ print_frame_arg_vars (struct frame_info *frame, struct ui_file *stream)
|
|||
}
|
||||
|
||||
void
|
||||
args_info (char *ignore, int from_tty)
|
||||
info_args_command (char *ignore, int from_tty)
|
||||
{
|
||||
print_frame_arg_vars (get_selected_frame (_("No frame selected.")),
|
||||
gdb_stdout);
|
||||
|
@ -2630,12 +2630,12 @@ on this backtrace.\n"));
|
|||
add_info ("stack", backtrace_command,
|
||||
_("Backtrace of the stack, or innermost COUNT frames."));
|
||||
add_info_alias ("s", "stack", 1);
|
||||
add_info ("frame", frame_info,
|
||||
add_info ("frame", info_frame_command,
|
||||
_("All about selected stack frame, or frame at ADDR."));
|
||||
add_info_alias ("f", "frame", 1);
|
||||
add_info ("locals", locals_info,
|
||||
add_info ("locals", info_locals_command,
|
||||
_("Local variables of current stack frame."));
|
||||
add_info ("args", args_info,
|
||||
add_info ("args", info_args_command,
|
||||
_("Argument variables of current stack frame."));
|
||||
|
||||
if (dbx_commands)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue