diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-01-06 00:57:05 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-01-06 00:57:05 +0000 |
commit | 9a2b4c1ba76f3dff85f08faff0dd08849c2905fb (patch) | |
tree | f1207a32403657c19e469f90bc242979ed26ed6e /gdb/cli | |
parent | 493e2a69a40a30bcabe6ad5390dbae9bab98015d (diff) | |
download | fsf-binutils-gdb-9a2b4c1ba76f3dff85f08faff0dd08849c2905fb.zip fsf-binutils-gdb-9a2b4c1ba76f3dff85f08faff0dd08849c2905fb.tar.gz fsf-binutils-gdb-9a2b4c1ba76f3dff85f08faff0dd08849c2905fb.tar.bz2 |
2011-01-05 Michael Snyder <msnyder@vmware.com>
* cli/cli-cmds.c: Shorten lines of >= 80 columns.
* cli/cli-decode.c: Ditto.
* cli/cli-dump.c: Ditto.
* cli/cli-logging.c: Ditto.
* cli/cli-script.c: Ditto.
* cli/cli-setshow.c: Ditto.
* common/signals.c: Ditto.
* mi/mi-cmd-break.c: Ditto.
* mi/mi-cmd-disas.c: Ditto.
* mi/mi-cmd-stack.c: Ditto.
* mi/mi-cmd-var.c: Ditto.
* mi/mi-cmds.c: Ditto.
* mi/mi-common.h: Ditto.
* mi/mi-console.c: Ditto.
* mi/mi-interp.c: Ditto.
* mi/mi-main.c: Ditto.
* osf-share/cma_attr.c: Ditto.
* osf-share/cma_deb_core.h: Ditto.
* osf-share/cma_debug_client.h: Ditto.
* osf-share/cma_handle.h: Ditto.
* osf-share/cma_mutex.h: Ditto.
* osf-share/cma_stack_int.h: Ditto.
* osf-share/cma_tcb_defs.h: Ditto.
* python/py-auto-load.c: Ditto.
* python/py-breakpoint.c: Ditto.
* python/py-cmd.c: Ditto.
* python/py-frame.c: Ditto.
* python/py-objfile.c: Ditto.
* python/py-param.c: Ditto.
* python/py-progspace.c: Ditto.
* python/py-symbol.c: Ditto.
* python/py-value.c: Ditto.
* python/python-internal.h: Ditto.
* python/python.c: Ditto.
* tui/tui-data.c: Ditto.
* tui/tui-disasm.c: Ditto.
* tui/tui-hooks.c: Ditto.
* tui/tui-io.c: Ditto.
* tui/tui-layout.c: Ditto.
* tui/tui-regs.c: Ditto.
* tui/tui-source.c: Ditto.
* tui/tui-stack.c: Ditto.
* tui/tui-win.c: Ditto.
* tui/tui-windata.c: Ditto.
* tui/tui-winsource.c: Ditto.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 32 | ||||
-rw-r--r-- | gdb/cli/cli-decode.c | 8 | ||||
-rw-r--r-- | gdb/cli/cli-dump.c | 28 | ||||
-rw-r--r-- | gdb/cli/cli-logging.c | 18 | ||||
-rw-r--r-- | gdb/cli/cli-script.c | 9 | ||||
-rw-r--r-- | gdb/cli/cli-setshow.c | 3 |
6 files changed, 55 insertions, 43 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 3b777ba..ae02031 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -221,7 +221,8 @@ error_no_arg (char *why) static void info_command (char *arg, int from_tty) { - printf_unfiltered (_("\"info\" must be followed by the name of an info command.\n")); + printf_unfiltered (_("\"info\" must be followed by " + "the name of an info command.\n")); help_list (infolist, "info ", -1, gdb_stdout); } @@ -468,8 +469,8 @@ static void show_script_ext_mode (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { - fprintf_filtered (file, _("\ -Script filename extension recognition is \"%s\".\n"), + fprintf_filtered (file, + _("Script filename extension recognition is \"%s\".\n"), value); } @@ -899,7 +900,8 @@ list_command (char *arg, int from_tty) if (strcmp (arg, "-") == 0) { print_source_lines (cursal.symtab, - max (get_first_line_listed () - get_lines_to_list (), 1), + max (get_first_line_listed () + - get_lines_to_list (), 1), get_first_line_listed (), 0); return; } @@ -1293,7 +1295,8 @@ ambiguous_line_spec (struct symtabs_and_lines *sals) static void set_debug (char *arg, int from_tty) { - printf_unfiltered (_("\"set debug\" must be followed by the name of a debug subcommand.\n")); + printf_unfiltered (_("\"set debug\" must be followed by " + "the name of a debug subcommand.\n")); help_list (setdebuglist, "set debug ", -1, gdb_stdout); } @@ -1338,8 +1341,9 @@ show_info_verbose (struct ui_file *file, int from_tty, const char *value) { if (info_verbose) - fprintf_filtered (file, _("\ -Verbose printing of informational messages is %s.\n"), value); + fprintf_filtered (file, + _("Verbose printing of informational messages is %s.\n"), + value); else fprintf_filtered (file, _("Verbosity is %s.\n"), value); } @@ -1372,8 +1376,8 @@ static void show_remote_timeout (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { - fprintf_filtered (file, _("\ -Timeout limit to wait for target to respond is %s.\n"), + fprintf_filtered (file, + _("Timeout limit to wait for target to respond is %s.\n"), value); } @@ -1381,8 +1385,8 @@ static void show_max_user_call_depth (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { - fprintf_filtered (file, _("\ -The max call depth for user-defined commands is %s.\n"), + fprintf_filtered (file, + _("The max call depth for user-defined commands is %s.\n"), value); } @@ -1403,7 +1407,8 @@ These commands are subject to frequent change, and may not be as\n\ well documented as user commands."), &cmdlist); add_cmd ("obscure", class_obscure, NULL, _("Obscure features."), &cmdlist); - add_cmd ("aliases", class_alias, NULL, _("Aliases of other commands."), &cmdlist); + add_cmd ("aliases", class_alias, NULL, + _("Aliases of other commands."), &cmdlist); add_cmd ("user-defined", class_user, NULL, _("\ User-defined commands.\n\ The commands in this class are those defined by the user.\n\ @@ -1616,7 +1621,8 @@ Lines can be specified in these ways:\n\ FUNCTION, to list around beginning of that function,\n\ FILE:FUNCTION, to distinguish among like-named static functions.\n\ *ADDRESS, to list around the line containing that address.\n\ -With two args if one is empty it stands for ten lines away from the other arg.")); +With two args if one is empty it stands for ten lines away from \ +the other arg.")); if (!xdb_commands) add_com_alias ("l", "list", class_files, 1); diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index e49eb03..4c1b412 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -279,7 +279,8 @@ add_alias_cmd (char *name, char *oldname, enum command_class class, containing that list. */ struct cmd_list_element * -add_prefix_cmd (char *name, enum command_class class, void (*fun) (char *, int), +add_prefix_cmd (char *name, enum command_class class, + void (*fun) (char *, int), char *doc, struct cmd_list_element **prefixlist, char *prefixname, int allow_unknown, struct cmd_list_element **list) @@ -1378,7 +1379,8 @@ lookup_cmd (char **line, struct cmd_list_element *list, char *cmdtype, for (c = local_list; c; c = c->next) if (!strncmp (*line, c->name, amb_len)) { - if (strlen (ambbuf) + strlen (c->name) + 6 < (int) sizeof ambbuf) + if (strlen (ambbuf) + strlen (c->name) + 6 + < (int) sizeof ambbuf) { if (strlen (ambbuf)) strcat (ambbuf, ", "); @@ -1751,7 +1753,7 @@ complete_on_enum (const char *enumlist[], else { matchlist = (char **) xrealloc ((char *) matchlist, ((matches + 1) - * sizeof (char *))); + * sizeof (char *))); matchlist[matches] = (char *) 0; } diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c index 48ecff9..95c1b34 100644 --- a/gdb/cli/cli-dump.c +++ b/gdb/cli/cli-dump.c @@ -668,13 +668,13 @@ _initialize_cli_dump (void) { struct cmd_list_element *c; - add_prefix_cmd ("dump", class_vars, dump_command, _("\ -Dump target code/data to a local file."), + add_prefix_cmd ("dump", class_vars, dump_command, + _("Dump target code/data to a local file."), &dump_cmdlist, "dump ", 0/*allow-unknown*/, &cmdlist); - add_prefix_cmd ("append", class_vars, append_command, _("\ -Append target code/data to a local file."), + add_prefix_cmd ("append", class_vars, append_command, + _("Append target code/data to a local file."), &append_cmdlist, "append ", 0/*allow-unknown*/, &cmdlist); @@ -689,32 +689,32 @@ Write the value of an expression to a raw binary file.\n\ Arguments are FILE EXPRESSION. Writes the value of EXPRESSION to\n\ the specified FILE in raw target ordered bytes."); - add_prefix_cmd ("srec", all_commands, srec_dump_command, _("\ -Write target code/data to an srec file."), + add_prefix_cmd ("srec", all_commands, srec_dump_command, + _("Write target code/data to an srec file."), &srec_cmdlist, "dump srec ", 0 /*allow-unknown*/, &dump_cmdlist); - add_prefix_cmd ("ihex", all_commands, ihex_dump_command, _("\ -Write target code/data to an intel hex file."), + add_prefix_cmd ("ihex", all_commands, ihex_dump_command, + _("Write target code/data to an intel hex file."), &ihex_cmdlist, "dump ihex ", 0 /*allow-unknown*/, &dump_cmdlist); - add_prefix_cmd ("tekhex", all_commands, tekhex_dump_command, _("\ -Write target code/data to a tekhex file."), + add_prefix_cmd ("tekhex", all_commands, tekhex_dump_command, + _("Write target code/data to a tekhex file."), &tekhex_cmdlist, "dump tekhex ", 0 /*allow-unknown*/, &dump_cmdlist); - add_prefix_cmd ("binary", all_commands, binary_dump_command, _("\ -Write target code/data to a raw binary file."), + add_prefix_cmd ("binary", all_commands, binary_dump_command, + _("Write target code/data to a raw binary file."), &binary_dump_cmdlist, "dump binary ", 0 /*allow-unknown*/, &dump_cmdlist); - add_prefix_cmd ("binary", all_commands, binary_append_command, _("\ -Append target code/data to a raw binary file."), + add_prefix_cmd ("binary", all_commands, binary_append_command, + _("Append target code/data to a raw binary file."), &binary_append_cmdlist, "append binary ", 0 /*allow-unknown*/, &append_cmdlist); diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c index 3f6f851..d0e25ea 100644 --- a/gdb/cli/cli-logging.c +++ b/gdb/cli/cli-logging.c @@ -61,8 +61,9 @@ static void show_logging_overwrite (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { - fprintf_filtered (file, _("\ -Whether logging overwrites or appends to the log file is %s.\n"), + fprintf_filtered (file, + _("Whether logging overwrites or " + "appends to the log file is %s.\n"), value); } @@ -258,13 +259,12 @@ set_logging_off (char *args, int from_tty) static void set_logging_command (char *args, int from_tty) { - printf_unfiltered (_("\ -\"set logging\" lets you log output to a file.\n\ -Usage: set logging on [FILENAME]\n\ - set logging off\n\ - set logging file FILENAME\n\ - set logging overwrite [on|off]\n\ - set logging redirect [on|off]\n")); + printf_unfiltered (_("\"set logging\" lets you log output to a file.\n" + "Usage: set logging on [FILENAME]\n" + " set logging off\n" + " set logging file FILENAME\n" + " set logging overwrite [on|off]\n" + " set logging redirect [on|off]\n")); } static void diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 49d5579..5903015 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -1186,7 +1186,8 @@ read_command_lines (char *prompt_arg, int from_tty, int parse_commands, if (deprecated_readline_begin_hook) { /* Note - intentional to merge messages with no newline. */ - (*deprecated_readline_begin_hook) ("%s %s\n", prompt_arg, END_MESSAGE); + (*deprecated_readline_begin_hook) ("%s %s\n", prompt_arg, + END_MESSAGE); } else { @@ -1479,7 +1480,8 @@ define_command (char *comname, int from_tty) hookc = 0; if (!hookc) { - warning (_("Your new `%s' command does not hook any existing command."), + warning (_("Your new `%s' command does not " + "hook any existing command."), comfull); if (!query (_("Proceed? "))) error (_("Not confirmed.")); @@ -1517,7 +1519,8 @@ define_command (char *comname, int from_tty) break; case CMD_POST_HOOK: hookc->hook_post = newc; /* Target gets hooked. */ - newc->hookee_post = hookc; /* We are marked as hooking target cmd. */ + newc->hookee_post = hookc; /* We are marked as hooking + target cmd. */ break; default: /* Should never come here as hookc would be 0. */ diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c index 230d1b9..c676f3b 100644 --- a/gdb/cli/cli-setshow.c +++ b/gdb/cli/cli-setshow.c @@ -352,7 +352,8 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c) break; default: internal_error (__FILE__, __LINE__, - _("do_setshow_command: invalid var_auto_boolean")); + _("do_setshow_command: " + "invalid var_auto_boolean")); break; } break; |