+2011-01-07 Michael Snyder <msnyder@vmware.com>
+
+ * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
+ for i18n.
+ * tui/tui-layout.c (tui_set_layout_for_display_command):
+ Split line so that operator goes to beginning of line.
+ * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
+ assignment out of if statement.
+
2011-01-07 Michael Snyder <msnyder@vmware.com>
* ada-lang.c: Comment cleanup, mostly periods and spaces.
if (!((line_seen && file_seen && num_seen && !start_seen && !end_seen)
|| (line_seen && file_seen && !num_seen && !start_seen && !end_seen)
|| (!line_seen && !file_seen && !num_seen && start_seen && end_seen)))
- error ("mi_cmd_disassemble: Usage: ( [-f filename -l linenum [-n "
- "howmany]] | [-s startaddr -e endaddr]) [--] mixed_mode.");
+ error (_("mi_cmd_disassemble: Usage: ( [-f filename -l linenum [-n "
+ "howmany]] | [-s startaddr -e endaddr]) [--] mixed_mode."));
if (argc != 1)
- error ("mi_cmd_disassemble: Usage: [-f filename -l "
- "linenum [-n howmany]] [-s startaddr -e endaddr] [--] mixed_mode.");
+ error (_("mi_cmd_disassemble: Usage: [-f filename -l linenum "
+ "[-n howmany]] [-s startaddr -e endaddr] [--] mixed_mode."));
mixed_source_and_assembly = atoi (argv[0]);
if ((mixed_source_and_assembly != 0) && (mixed_source_and_assembly != 1))
{
if (TUI_DATA_WIN->detail.data_display_info.regs_display_type
!= TUI_UNDEFINED_REGS)
- dpy_type =
- TUI_DATA_WIN->detail.data_display_info.regs_display_type;
+ dpy_type
+ = TUI_DATA_WIN->detail.data_display_info.regs_display_type;
else
dpy_type = TUI_GENERAL_REGS;
}
+ num_to_scroll;
else
{
- if ((offset = win_info->detail.source_info.horizontal_offset
- - num_to_scroll) < 0)
+ offset = win_info->detail.source_info.horizontal_offset
+ - num_to_scroll;
+ if (offset < 0)
offset = 0;
}
win_info->detail.source_info.horizontal_offset = offset;