diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-01-06 00:57:05 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-01-06 00:57:05 +0000 |
commit | 9a2b4c1ba76f3dff85f08faff0dd08849c2905fb (patch) | |
tree | f1207a32403657c19e469f90bc242979ed26ed6e /gdb/tui/tui-winsource.c | |
parent | 493e2a69a40a30bcabe6ad5390dbae9bab98015d (diff) | |
download | gdb-9a2b4c1ba76f3dff85f08faff0dd08849c2905fb.zip gdb-9a2b4c1ba76f3dff85f08faff0dd08849c2905fb.tar.gz gdb-9a2b4c1ba76f3dff85f08faff0dd08849c2905fb.tar.bz2 |
2011-01-05 Michael Snyder <msnyder@vmware.com>
* cli/cli-cmds.c: Shorten lines of >= 80 columns.
* cli/cli-decode.c: Ditto.
* cli/cli-dump.c: Ditto.
* cli/cli-logging.c: Ditto.
* cli/cli-script.c: Ditto.
* cli/cli-setshow.c: Ditto.
* common/signals.c: Ditto.
* mi/mi-cmd-break.c: Ditto.
* mi/mi-cmd-disas.c: Ditto.
* mi/mi-cmd-stack.c: Ditto.
* mi/mi-cmd-var.c: Ditto.
* mi/mi-cmds.c: Ditto.
* mi/mi-common.h: Ditto.
* mi/mi-console.c: Ditto.
* mi/mi-interp.c: Ditto.
* mi/mi-main.c: Ditto.
* osf-share/cma_attr.c: Ditto.
* osf-share/cma_deb_core.h: Ditto.
* osf-share/cma_debug_client.h: Ditto.
* osf-share/cma_handle.h: Ditto.
* osf-share/cma_mutex.h: Ditto.
* osf-share/cma_stack_int.h: Ditto.
* osf-share/cma_tcb_defs.h: Ditto.
* python/py-auto-load.c: Ditto.
* python/py-breakpoint.c: Ditto.
* python/py-cmd.c: Ditto.
* python/py-frame.c: Ditto.
* python/py-objfile.c: Ditto.
* python/py-param.c: Ditto.
* python/py-progspace.c: Ditto.
* python/py-symbol.c: Ditto.
* python/py-value.c: Ditto.
* python/python-internal.h: Ditto.
* python/python.c: Ditto.
* tui/tui-data.c: Ditto.
* tui/tui-disasm.c: Ditto.
* tui/tui-hooks.c: Ditto.
* tui/tui-io.c: Ditto.
* tui/tui-layout.c: Ditto.
* tui/tui-regs.c: Ditto.
* tui/tui-source.c: Ditto.
* tui/tui-stack.c: Ditto.
* tui/tui-win.c: Ditto.
* tui/tui-windata.c: Ditto.
* tui/tui-winsource.c: Ditto.
Diffstat (limited to 'gdb/tui/tui-winsource.c')
-rw-r--r-- | gdb/tui/tui-winsource.c | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 52ba346..8b77836 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -328,7 +328,8 @@ tui_horizontal_source_scroll (struct tui_win_info *win_info, if (win_info->generic.type == SRC_WIN) { - struct symtab_and_line cursal = get_current_source_symtab_and_line (); + struct symtab_and_line cursal + = get_current_source_symtab_and_line (); if (cursal.symtab == NULL) s = find_pc_symtab (get_frame_pc (get_selected_frame (NULL))); @@ -337,11 +338,12 @@ tui_horizontal_source_scroll (struct tui_win_info *win_info, } if (direction == LEFT_SCROLL) - offset = win_info->detail.source_info.horizontal_offset + num_to_scroll; + offset = win_info->detail.source_info.horizontal_offset + + num_to_scroll; else { - if ((offset = - win_info->detail.source_info.horizontal_offset - num_to_scroll) < 0) + if ((offset = win_info->detail.source_info.horizontal_offset + - num_to_scroll) < 0) offset = 0; } win_info->detail.source_info.horizontal_offset = offset; @@ -436,7 +438,8 @@ tui_update_breakpoint_info (struct tui_win_info *win, int mode; struct tui_source_element *line; - line = &((struct tui_win_element *) win->generic.content[i])->which_element.source; + line = &((struct tui_win_element *) + win->generic.content[i])->which_element.source; if (current_only && !line->is_exec_point) continue; @@ -490,9 +493,11 @@ tui_set_exec_info_content (struct tui_win_info *win_info) { enum tui_status ret = TUI_SUCCESS; - if (win_info->detail.source_info.execution_info != (struct tui_gen_win_info *) NULL) + if (win_info->detail.source_info.execution_info + != (struct tui_gen_win_info *) NULL) { - struct tui_gen_win_info *exec_info_ptr = win_info->detail.source_info.execution_info; + struct tui_gen_win_info *exec_info_ptr + = win_info->detail.source_info.execution_info; if (exec_info_ptr->content == NULL) exec_info_ptr->content = @@ -510,7 +515,8 @@ tui_set_exec_info_content (struct tui_win_info *win_info) int mode; element = (struct tui_win_element *) exec_info_ptr->content[i]; - src_element = (struct tui_win_element *) win_info->generic.content[i]; + src_element = (struct tui_win_element *) + win_info->generic.content[i]; memset(element->which_element.simple_string, ' ', sizeof(element->which_element.simple_string)); @@ -547,7 +553,8 @@ tui_set_exec_info_content (struct tui_win_info *win_info) void tui_show_exec_info_content (struct tui_win_info *win_info) { - struct tui_gen_win_info *exec_info = win_info->detail.source_info.execution_info; + struct tui_gen_win_info *exec_info + = win_info->detail.source_info.execution_info; int cur_line; werase (exec_info->handle); @@ -566,7 +573,8 @@ tui_show_exec_info_content (struct tui_win_info *win_info) void tui_erase_exec_info_content (struct tui_win_info *win_info) { - struct tui_gen_win_info *exec_info = win_info->detail.source_info.execution_info; + struct tui_gen_win_info *exec_info + = win_info->detail.source_info.execution_info; werase (exec_info->handle); tui_refresh_win (exec_info); @@ -608,7 +616,8 @@ tui_alloc_source_buffer (struct tui_win_info *win_info) xmalloc ((max_lines * line_width) * sizeof (char)); if (src_line_buf == (char *) NULL) { - fputs_unfiltered ("Unable to Allocate Memory for Source or Disassembly Display.\n", + fputs_unfiltered ("Unable to Allocate Memory for " + "Source or Disassembly Display.\n", gdb_stderr); return TUI_FAILURE; } @@ -617,7 +626,8 @@ tui_alloc_source_buffer (struct tui_win_info *win_info) (void **) tui_alloc_content (max_lines, SRC_WIN)) == NULL) { xfree (src_line_buf); - fputs_unfiltered ("Unable to Allocate Memory for Source or Disassembly Display.\n", + fputs_unfiltered ("Unable to Allocate Memory for " + "Source or Disassembly Display.\n", gdb_stderr); return TUI_FAILURE; } |