aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-01-07 20:24:18 +0000
committerMichael Snyder <msnyder@vmware.com>2011-01-07 20:24:18 +0000
commita743e5423cbb33c02296c19756d1d08511c4da69 (patch)
treeb4d9eea56bf3dcab1795b1dfe50624886b8cbb8d /gdb/tui
parent0963b4bd458eab010b3b19c9ffd8eb790f2cd06c (diff)
downloadgdb-a743e5423cbb33c02296c19756d1d08511c4da69.zip
gdb-a743e5423cbb33c02296c19756d1d08511c4da69.tar.gz
gdb-a743e5423cbb33c02296c19756d1d08511c4da69.tar.bz2
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.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-layout.c4
-rw-r--r--gdb/tui/tui-winsource.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index 5bfce76..80df011 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -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;
}
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c
index 8b77836..139c669 100644
--- a/gdb/tui/tui-winsource.c
+++ b/gdb/tui/tui-winsource.c
@@ -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;