2011-01-07 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Fri, 7 Jan 2011 20:24:18 +0000 (20:24 +0000)
committerMichael Snyder <msnyder@vmware.com>
Fri, 7 Jan 2011 20:24:18 +0000 (20:24 +0000)
* 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.

gdb/ChangeLog
gdb/mi/mi-cmd-disas.c
gdb/tui/tui-layout.c
gdb/tui/tui-winsource.c

index ea1e853233cb890df26fd168f1f41dbf9f1037d2..b3b3a818191a031e72320f0c3ad7f6ad11144040 100644 (file)
@@ -1,3 +1,12 @@
+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.
index 73d63739aefb9dc41658692ba5fec3b775bd6eb9..1932ae26be213d1aa9e4794ee7c376633fa4c369 100644 (file)
@@ -128,12 +128,12 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
   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))
index 5bfce76c03a5d6a47ecb1b0660f089a63858ab92..80df011aca6fcf348d0b4a7aae56b2f8b62c32dd 100644 (file)
@@ -488,8 +488,8 @@ tui_set_layout_for_display_command (const char *layout_name)
                {
                  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;
                }
index 8b7783634ab2a784783c0ef6bc6cc26b822d7774..139c669d82bb6374cd5f82900b0718612b0b4ca6 100644 (file)
@@ -342,8 +342,9 @@ tui_horizontal_source_scroll (struct tui_win_info *win_info,
          + 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;