diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-15 15:49:28 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-15 15:49:28 +0000 |
commit | 1bedd215175652ad3e82d2fb731f1d62dd44acf8 (patch) | |
tree | 09ea0800a74e846c01f195cc7de13c5df107c697 /gdb/tui | |
parent | 724f452bdd25d4fd3eb3e361043276dcbde6d85c (diff) | |
download | binutils-1bedd215175652ad3e82d2fb731f1d62dd44acf8.zip binutils-1bedd215175652ad3e82d2fb731f1d62dd44acf8.tar.gz binutils-1bedd215175652ad3e82d2fb731f1d62dd44acf8.tar.bz2 |
2005-02-15 Andrew Cagney <cagney@gnu.org>
Mark up add_com, add_info and add_prefix_cmd.
* breakpoint.c, cp-support.c, dcache.c, dwarf2read.c: Update.
* exec.c, f-valprint.c, frame.c, gcore.c, gnu-nat.c: Update.
* go32-nat.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
* kod.c, language.c, linux-nat.c, m32r-rom.c, macrocmd.c: Update.
* maint.c, memattr.c, mips-tdep.c, nto-procfs.c, objc-lang.c: Update.
* ocd.c, pa64solib.c, printcmd.c, procfs.c, regcache.c: Update.
* remote-e7000.c, remote-m32r-sdi.c, remote-mips.c: Update.
* remote-sds.c, remote-sim.c, remote-st.c, remote-utils.c: Update.
* remote.c, rs6000-tdep.c, ser-go32.c, serial.c: Update.
* sh-tdep.c, solib.c, somsolib.c, source.c, stack.c: Update.
* symfile.c, symtab.c, target.c, thread.c, top.c: Update.
* tracepoint.c, typeprint.c, utils.c, valprint.c: Update.
* win32-nat.c, xcoffsolib.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
* cli/cli-logging.c, tui/tui-layout.c, tui/tui-regs.c: Update.
* tui/tui-stack.c, tui/tui-win.c: Update.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-layout.c | 16 | ||||
-rw-r--r-- | gdb/tui/tui-regs.c | 12 | ||||
-rw-r--r-- | gdb/tui/tui-stack.c | 5 | ||||
-rw-r--r-- | gdb/tui/tui-win.c | 54 |
4 files changed, 45 insertions, 42 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index 00c3dcd..d2d8efe 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -372,8 +372,8 @@ tui_default_win_viewport_height (enum tui_win_type type, void _initialize_tui_layout (void) { - add_com ("layout", class_tui, tui_layout_command, - "Change the layout of windows.\n\ + add_com ("layout", class_tui, tui_layout_command, _("\ +Change the layout of windows.\n\ Usage: layout prev | next | <layout_name> \n\ Layout names are:\n\ src : Displays source and command windows.\n\ @@ -384,14 +384,14 @@ Layout names are:\n\ register window is displayed. If the\n\ source/assembly/command (split) is displayed, \n\ the register window is displayed with \n\ - the window that has current logical focus.\n"); + the window that has current logical focus.\n")); if (xdb_commands) { - add_com ("td", class_tui, tui_toggle_layout_command, - "Toggle between Source/Command and Disassembly/Command layouts.\n"); - add_com ("ts", class_tui, tui_toggle_split_layout_command, - "Toggle between Source/Command or Disassembly/Command and \n\ -Source/Disassembly/Command layouts.\n"); + add_com ("td", class_tui, tui_toggle_layout_command, _("\ +Toggle between Source/Command and Disassembly/Command layouts.\n")); + add_com ("ts", class_tui, tui_toggle_split_layout_command, _("\ +Toggle between Source/Command or Disassembly/Command and \n\ +Source/Disassembly/Command layouts.\n")); } } diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 659c2b6..f105d05 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -595,7 +595,7 @@ _initialize_tui_regs (void) tuicmd = tui_get_cmd_list (); add_prefix_cmd ("reg", class_tui, tui_reg_command, - "TUI commands to control the register window.", + _("TUI commands to control the register window."), &tuireglist, "tui reg ", 0, tuicmd); @@ -615,15 +615,15 @@ _initialize_tui_regs (void) if (xdb_commands) { add_com ("fr", class_tui, tui_reg_float_command, - "Display only floating point registers\n"); + _("Display only floating point registers\n")); add_com ("gr", class_tui, tui_reg_general_command, - "Display only general registers\n"); + _("Display only general registers\n")); add_com ("sr", class_tui, tui_reg_system_command, - "Display only special registers\n"); + _("Display only special registers\n")); add_com ("+r", class_tui, tui_scroll_regs_forward_command, - "Scroll the registers window forward\n"); + _("Scroll the registers window forward\n")); add_com ("-r", class_tui, tui_scroll_regs_backward_command, - "Scroll the register window backward\n"); + _("Scroll the register window backward\n")); } } diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c index 6600a64..c0a1b82 100644 --- a/gdb/tui/tui-stack.c +++ b/gdb/tui/tui-stack.c @@ -411,9 +411,8 @@ tui_show_frame_info (struct frame_info *fi) void _initialize_tui_stack (void) { - add_com ("update", class_tui, tui_update_command, - "Update the source window and locator to display the current " - "execution point.\n"); + add_com ("update", class_tui, tui_update_command, _("\ +Update the source window and locator to display the current execution point.\n")); } /* Command to update the display with the current execution point. */ diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index fba3700..b171893 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -305,7 +305,7 @@ tui_get_cmd_list (void) { if (tuilist == 0) add_prefix_cmd ("tui", class_tui, tui_command, - "Text User Interface commands.", + _("Text User Interface commands."), &tuilist, "tui ", 0, &cmdlist); return &tuilist; } @@ -321,53 +321,57 @@ _initialize_tui_win (void) /* Define the classes of commands. They will appear in the help list in the reverse of this order. */ add_prefix_cmd ("tui", class_tui, set_tui_cmd, - "TUI configuration variables", + _("TUI configuration variables"), &tui_setlist, "set tui ", 0/*allow-unknown*/, &setlist); add_prefix_cmd ("tui", class_tui, show_tui_cmd, - "TUI configuration variables", + _("TUI configuration variables"), &tui_showlist, "show tui ", 0/*allow-unknown*/, &showlist); add_com ("refresh", class_tui, tui_refresh_all_command, - "Refresh the terminal display.\n"); + _("Refresh the terminal display.\n")); if (xdb_commands) add_com_alias ("U", "refresh", class_tui, 0); - add_com ("tabset", class_tui, tui_set_tab_width_command, - "Set the width (in characters) of tab stops.\n\ -Usage: tabset <n>\n"); - add_com ("winheight", class_tui, tui_set_win_height_command, - "Set the height of a specified window.\n\ + add_com ("tabset", class_tui, tui_set_tab_width_command, _("\ +Set the width (in characters) of tab stops.\n\ +Usage: tabset <n>\n")); + add_com ("winheight", class_tui, tui_set_win_height_command, _("\ +Set the height of a specified window.\n\ Usage: winheight <win_name> [+ | -] <#lines>\n\ Window names are:\n\ src : the source window\n\ cmd : the command window\n\ asm : the disassembly window\n\ -regs : the register display\n"); +regs : the register display\n")); add_com_alias ("wh", "winheight", class_tui, 0); add_info ("win", tui_all_windows_info, - "List of all displayed windows.\n"); - add_com ("focus", class_tui, tui_set_focus_command, - "Set focus to named window or next/prev window.\n\ + _("List of all displayed windows.\n")); + add_com ("focus", class_tui, tui_set_focus_command, _("\ +Set focus to named window or next/prev window.\n\ Usage: focus {<win> | next | prev}\n\ Valid Window names are:\n\ src : the source window\n\ asm : the disassembly window\n\ regs : the register display\n\ -cmd : the command window\n"); +cmd : the command window\n")); add_com_alias ("fs", "focus", class_tui, 0); - add_com ("+", class_tui, tui_scroll_forward_command, - "Scroll window forward.\nUsage: + [win] [n]\n"); - add_com ("-", class_tui, tui_scroll_backward_command, - "Scroll window backward.\nUsage: - [win] [n]\n"); - add_com ("<", class_tui, tui_scroll_left_command, - "Scroll window forward.\nUsage: < [win] [n]\n"); - add_com (">", class_tui, tui_scroll_right_command, - "Scroll window backward.\nUsage: > [win] [n]\n"); + add_com ("+", class_tui, tui_scroll_forward_command, _("\ +Scroll window forward.\n\ +Usage: + [win] [n]\n")); + add_com ("-", class_tui, tui_scroll_backward_command, _("\ +Scroll window backward.\n\ +Usage: - [win] [n]\n")); + add_com ("<", class_tui, tui_scroll_left_command, _("\ +Scroll window forward.\n\ +Usage: < [win] [n]\n")); + add_com (">", class_tui, tui_scroll_right_command, _("\ +Scroll window backward.\n\ +Usage: > [win] [n]\n")); if (xdb_commands) - add_com ("w", class_xdb, tui_xdb_set_win_height_command, - "XDB compatibility command for setting the height of a command window.\n\ -Usage: w <#lines>\n"); + add_com ("w", class_xdb, tui_xdb_set_win_height_command, _("\ +XDB compatibility command for setting the height of a command window.\n\ +Usage: w <#lines>\n")); /* Define the tui control variables. */ c = add_set_enum_cmd |