aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-17 22:21:43 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-17 22:21:43 +0000
commit1c5313c5c81121a5fcec2f3344012ff5a86d8e8f (patch)
treead2c3927e02f498b644436d7e172d1243fb18f84 /gdb/tui/tui.c
parentf4a14ae60d33ac392ac74c54da1ef10bb293adef (diff)
downloadgdb-1c5313c5c81121a5fcec2f3344012ff5a86d8e8f.zip
gdb-1c5313c5c81121a5fcec2f3344012ff5a86d8e8f.tar.gz
gdb-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.c')
-rw-r--r--gdb/tui/tui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index e126d81..fb736a9 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -244,6 +244,7 @@ tui_rl_command_key (int count, int key)
/* Must save the command because it can be modified by
execute_command. */
char *cmd = alloca (strlen (tui_commands[i].cmd) + 1);
+
strcpy (cmd, tui_commands[i].cmd);
execute_command (cmd, TRUE);
return 0;
@@ -530,6 +531,7 @@ void
tui_show_source (const char *file, int line)
{
struct symtab_and_line cursal = get_current_source_symtab_and_line ();
+
/* Make sure that the source window is displayed. */
tui_add_win_to_layout (SRC_WIN);