diff options
author | Michael Snyder <msnyder@vmware.com> | 2010-05-17 22:21:43 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2010-05-17 22:21:43 +0000 |
commit | 1c5313c5c81121a5fcec2f3344012ff5a86d8e8f (patch) | |
tree | ad2c3927e02f498b644436d7e172d1243fb18f84 /gdb/tui/tui-source.c | |
parent | f4a14ae60d33ac392ac74c54da1ef10bb293adef (diff) | |
download | binutils-1c5313c5c81121a5fcec2f3344012ff5a86d8e8f.zip binutils-1c5313c5c81121a5fcec2f3344012ff5a86d8e8f.tar.gz binutils-1c5313c5c81121a5fcec2f3344012ff5a86d8e8f.tar.bz2 |
2010-05-17 Michael Snyder <msnyder@vmware.com>
* tui/tui.c: White space.
* tui/tui-data.c: White space.
* tui/tui-disasm.c: White space.
* tui/tui-file.c: White space.
* tui/tui-interp.c: White space.
* tui/tui-main.c: White space.
* tui/tui-out.c: White space.
* tui/tui-regs.c: White space.
* tui/tui-source.c: White space.
* tui/tui-stack.c: White space.
* tui/tui-win.c: White space.
* tui/tui-winsource.c: White space.
Diffstat (limited to 'gdb/tui/tui-source.c')
-rw-r--r-- | gdb/tui/tui-source.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/tui/tui-source.c b/gdb/tui/tui-source.c index 8bd3055..ddad6a1 100644 --- a/gdb/tui/tui-source.c +++ b/gdb/tui/tui-source.c @@ -64,6 +64,7 @@ tui_set_source_content (struct symtab *s, if (!noerror) { char *name = alloca (strlen (s->filename) + 100); + sprintf (name, "%s:%d", s->filename, line_no); print_sys_errmsg (name, errno); } @@ -116,7 +117,7 @@ tui_set_source_content (struct symtab *s, while (cur_line < nlines) { struct tui_win_element *element = (struct tui_win_element *) - TUI_SRC_WIN->generic.content[cur_line]; + TUI_SRC_WIN->generic.content[cur_line]; /* Get the first character in the line. */ c = fgetc (stream); @@ -263,6 +264,7 @@ tui_set_source_content_nil (struct tui_win_info *win_info, struct tui_win_element *element = (struct tui_win_element *) win_info->generic.content[curr_line]; + element->which_element.source.line_or_addr.loa = LOA_LINE; element->which_element.source.line_or_addr.u.line_no = 0; element->which_element.source.is_exec_point = FALSE; |