diff options
| -rw-r--r-- | lldb/tools/driver/Driver.cpp | 5 | ||||
| -rw-r--r-- | lldb/tools/lldb-mi/Driver.cpp | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp index fceb126c86e..928c75ebb84 100644 --- a/lldb/tools/driver/Driver.cpp +++ b/lldb/tools/driver/Driver.cpp @@ -51,7 +51,6 @@ static void reset_stdin_termios (); static bool g_old_stdin_termios_is_valid = false; static struct termios g_old_stdin_termios; -static char *g_debugger_name = (char *) ""; static Driver *g_driver = NULL; // In the Driver::MainLoop, we change the terminal settings. This function is @@ -146,16 +145,12 @@ Driver::Driver () : // We want to be able to handle CTRL+D in the terminal to have it terminate // certain input m_debugger.SetCloseInputOnEOF (false); - g_debugger_name = (char *) m_debugger.GetInstanceName(); - if (g_debugger_name == NULL) - g_debugger_name = (char *) ""; g_driver = this; } Driver::~Driver () { g_driver = NULL; - g_debugger_name = NULL; } diff --git a/lldb/tools/lldb-mi/Driver.cpp b/lldb/tools/lldb-mi/Driver.cpp index 8d2840ff33a..2df05f34d10 100644 --- a/lldb/tools/lldb-mi/Driver.cpp +++ b/lldb/tools/lldb-mi/Driver.cpp @@ -44,7 +44,6 @@ static void reset_stdin_termios(); static bool g_old_stdin_termios_is_valid = false; static struct termios g_old_stdin_termios; -static char *g_debugger_name = (char *)""; Driver *g_driver = NULL; // In the Driver::MainLoop, we change the terminal settings. This function is @@ -128,16 +127,12 @@ Driver::Driver() // We want to be able to handle CTRL+D in the terminal to have it terminate // certain input m_debugger.SetCloseInputOnEOF(false); - g_debugger_name = (char *)m_debugger.GetInstanceName(); - if (g_debugger_name == NULL) - g_debugger_name = (char *)""; g_driver = this; } Driver::~Driver() { g_driver = NULL; - g_debugger_name = NULL; } // This function takes INDENT, which tells how many spaces to output at the front |

