diff options
| author | Jim Ingham <jingham@apple.com> | 2013-02-22 22:56:55 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2013-02-22 22:56:55 +0000 |
| commit | c46fe7c0d18c5b6630ec1abf38480edc81ad33e4 (patch) | |
| tree | db479d5a8c844699d5560402e7b3859dabd7365d /lldb/tools/driver/Driver.cpp | |
| parent | fb70380f2f4d546c5ac37bb5bb98ad2c46810c41 (diff) | |
| download | bcm5719-llvm-c46fe7c0d18c5b6630ec1abf38480edc81ad33e4.tar.gz bcm5719-llvm-c46fe7c0d18c5b6630ec1abf38480edc81ad33e4.zip | |
Call el_resize when the window size changes.
<rdar://problem/13270100>
llvm-svn: 175926
Diffstat (limited to 'lldb/tools/driver/Driver.cpp')
| -rw-r--r-- | lldb/tools/driver/Driver.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp index 6b59b612f24..236a2f090bc 100644 --- a/lldb/tools/driver/Driver.cpp +++ b/lldb/tools/driver/Driver.cpp @@ -1611,6 +1611,15 @@ Driver::ReadyForCommand () } } +void +Driver::ResizeWindow (unsigned short col) +{ + GetDebugger().SetTerminalWidth (col); + if (m_io_channel_ap.get() != NULL) + { + m_io_channel_ap->ElResize(); + } +} void sigwinch_handler (int signo) @@ -1621,7 +1630,7 @@ sigwinch_handler (int signo) { if ((window_size.ws_col > 0) && g_driver != NULL) { - g_driver->GetDebugger().SetTerminalWidth (window_size.ws_col); + g_driver->ResizeWindow (window_size.ws_col); } } } |

