diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-08-15 00:19:44 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-08-15 00:19:44 +0000 |
commit | e5908723e599e3788a3fbceeef35804024a03af7 (patch) | |
tree | 430eb9a83e3edec1f52b027b8edbc092c1e1ec46 /gdb/tui/tui-winsource.c | |
parent | 8676c0493c4cd9793b684402ecf8775cc4f6b763 (diff) | |
download | gdb-e5908723e599e3788a3fbceeef35804024a03af7.zip gdb-e5908723e599e3788a3fbceeef35804024a03af7.tar.gz gdb-e5908723e599e3788a3fbceeef35804024a03af7.tar.bz2 |
2007-08-14 Michael Snyder <msnyder@access-company.com>
* tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
go at beginning of new line.
Diffstat (limited to 'gdb/tui/tui-winsource.c')
-rw-r--r-- | gdb/tui/tui-winsource.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 54da755..06c4777 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -118,8 +118,8 @@ tui_update_source_window_as_is (struct tui_win_info *win_info, set_current_source_symtab_and_line (&sal); /* If the focus was in the asm win, put it in the src win if we don't have a split layout. */ - if (tui_win_with_focus () == TUI_DISASM_WIN && - tui_current_layout () != SRC_DISASSEM_COMMAND) + if (tui_win_with_focus () == TUI_DISASM_WIN + && tui_current_layout () != SRC_DISASSEM_COMMAND) tui_set_win_focus_to (TUI_SRC_WIN); } } @@ -631,14 +631,15 @@ tui_line_is_displayed (int line, else threshold = 0; i = 0; - while (i < win_info->generic.content_size - threshold && !is_displayed) + while (i < win_info->generic.content_size - threshold + && !is_displayed) { is_displayed = (((struct tui_win_element *) - win_info->generic.content[i])->which_element.source.line_or_addr.loa + win_info->generic.content[i])->which_element.source.line_or_addr.loa == LOA_LINE) - && (((struct tui_win_element *) - win_info->generic.content[i])->which_element.source.line_or_addr.u.line_no - == (int) line); + && (((struct tui_win_element *) + win_info->generic.content[i])->which_element.source.line_or_addr.u.line_no + == (int) line); i++; } @@ -661,14 +662,15 @@ tui_addr_is_displayed (CORE_ADDR addr, else threshold = 0; i = 0; - while (i < win_info->generic.content_size - threshold && !is_displayed) + while (i < win_info->generic.content_size - threshold + && !is_displayed) { is_displayed = (((struct tui_win_element *) - win_info->generic.content[i])->which_element.source.line_or_addr.loa + win_info->generic.content[i])->which_element.source.line_or_addr.loa == LOA_ADDRESS) - && (((struct tui_win_element *) - win_info->generic.content[i])->which_element.source.line_or_addr.u.addr - == addr); + && (((struct tui_win_element *) + win_info->generic.content[i])->which_element.source.line_or_addr.u.addr + == addr); i++; } |