aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-layout.c4
-rw-r--r--gdb/tui/tui-stack.c2
-rw-r--r--gdb/tui/tui-win.c26
3 files changed, 16 insertions, 16 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index f2d4412..00c3dcd 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -423,7 +423,7 @@ tui_set_layout_for_display_command (const char *layout_name)
/* First check for ambiguous input */
if (strlen (buf_ptr) <= 1 && (*buf_ptr == 'S' || *buf_ptr == '$'))
{
- warning ("Ambiguous command input.\n");
+ warning (_("Ambiguous command input."));
status = TUI_FAILURE;
}
else
@@ -592,7 +592,7 @@ tui_layout_command (char *arg, int from_tty)
/* Switch to the selected layout. */
if (tui_set_layout_for_display_command (arg) != TUI_SUCCESS)
- warning ("Invalid layout specified.\n%s", LAYOUT_USAGE);
+ warning (_("Invalid layout specified.\n%s"), LAYOUT_USAGE);
}
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c
index 0ee5389..bdf3273 100644
--- a/gdb/tui/tui-stack.c
+++ b/gdb/tui/tui-stack.c
@@ -357,7 +357,7 @@ tui_show_frame_info (struct frame_info *fi)
{
if (find_pc_partial_function (get_frame_pc (fi), (char **) NULL,
&low, (CORE_ADDR) NULL) == 0)
- error ("No function contains program counter for selected frame.\n");
+ error (_("No function contains program counter for selected frame."));
else
low = tui_get_low_disassembly_address (low, get_frame_pc (fi));
}
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index a646a5a..443172d 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -855,8 +855,8 @@ tui_set_focus (char *arg, int from_tty)
win_info = tui_partial_win_by_name (buf_ptr);
if (win_info == (struct tui_win_info *) NULL || !win_info->generic.is_visible)
- warning ("Invalid window specified. \n\
-The window name specified must be valid and visible.\n");
+ warning (_("Invalid window specified. \n\
+The window name specified must be valid and visible.\n"));
else
{
tui_set_win_focus_to (win_info);
@@ -870,7 +870,7 @@ The window name specified must be valid and visible.\n");
tui_win_name ((struct tui_gen_win_info *) tui_win_with_focus ()));
}
else
- warning ("Incorrect Number of Arguments.\n%s", FOCUS_USAGE);
+ warning (_("Incorrect Number of Arguments.\n%s"), FOCUS_USAGE);
}
static void
@@ -927,7 +927,7 @@ tui_set_tab_width_command (char *arg, int from_tty)
if (ts > 0)
tui_set_default_tab_len (ts);
else
- warning ("Tab widths greater than 0 must be specified.\n");
+ warning (_("Tab widths greater than 0 must be specified."));
}
}
@@ -960,8 +960,8 @@ tui_set_win_height (char *arg, int from_tty)
win_info = tui_partial_win_by_name (wname);
if (win_info == (struct tui_win_info *) NULL || !win_info->generic.is_visible)
- warning ("Invalid window specified. \n\
-The window name specified must be valid and visible.\n");
+ warning (_("Invalid window specified. \n\
+The window name specified must be valid and visible.\n"));
else
{
/* Process the size */
@@ -996,13 +996,13 @@ The window name specified must be valid and visible.\n");
*/
if (tui_adjust_win_heights (win_info,
new_height) == TUI_FAILURE)
- warning ("Invalid window height specified.\n%s",
+ warning (_("Invalid window height specified.\n%s"),
WIN_HEIGHT_USAGE);
else
tui_update_gdb_sizes ();
}
else
- warning ("Invalid window height specified.\n%s",
+ warning (_("Invalid window height specified.\n%s"),
WIN_HEIGHT_USAGE);
}
}
@@ -1045,15 +1045,15 @@ tui_xdb_set_win_height (char *arg, int from_tty)
if (!new_height_ok (tui_win_list[CMD_WIN], new_height) ||
tui_adjust_win_heights (tui_win_list[CMD_WIN],
new_height) == TUI_FAILURE)
- warning ("Invalid window height specified.\n%s",
+ warning (_("Invalid window height specified.\n%s"),
XDBWIN_HEIGHT_USAGE);
}
else
- warning ("Invalid window height specified.\n%s",
+ warning (_("Invalid window height specified.\n%s"),
XDBWIN_HEIGHT_USAGE);
}
else
- warning ("Invalid window height specified.\n%s", XDBWIN_HEIGHT_USAGE);
+ warning (_("Invalid window height specified.\n%s"), XDBWIN_HEIGHT_USAGE);
}
/* Set the height of the specified window, with va_list. */
@@ -1510,8 +1510,8 @@ parse_scrolling_args (char *arg, struct tui_win_info * * win_to_scroll,
if (*win_to_scroll == (struct tui_win_info *) NULL ||
!(*win_to_scroll)->generic.is_visible)
- warning ("Invalid window specified. \n\
-The window name specified must be valid and visible.\n");
+ warning (_("Invalid window specified. \n\
+The window name specified must be valid and visible.\n"));
else if (*win_to_scroll == TUI_CMD_WIN)
*win_to_scroll = (struct tui_win_info *) (tui_source_windows ())->list[0];
}