diff options
| author | Robert Flack <flackr@gmail.com> | 2015-03-06 14:36:33 +0000 |
|---|---|---|
| committer | Robert Flack <flackr@gmail.com> | 2015-03-06 14:36:33 +0000 |
| commit | 8cc4cf178c91d159a68b7364d45cfa969464f5eb (patch) | |
| tree | 0c03e86c107bb9c3cdc4b31eaa1a5993599bd466 | |
| parent | 9930aaa9ed31688fee61c075a8f3b94f7be3910a (diff) | |
| download | bcm5719-llvm-8cc4cf178c91d159a68b7364d45cfa969464f5eb.tar.gz bcm5719-llvm-8cc4cf178c91d159a68b7364d45cfa969464f5eb.zip | |
Rename test/tools/lldb-gdbserver to test/tools/lldb-server
As requested in http://reviews.llvm.org/D7545 this change moves test/tools/lldb-gdbserver to test/tools/lldb-server ot match the name of the target being tested.
Differential Revision: http://reviews.llvm.org/D8061
llvm-svn: 231479
| -rwxr-xr-x | lldb/test/dotest.py | 2 | ||||
| -rw-r--r-- | lldb/test/lldbtest.py | 2 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-mi/signal/TestMiSignal.py | 5 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/Makefile (renamed from lldb/test/tools/lldb-gdbserver/Makefile) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/TestGdbRemoteAttach.py (renamed from lldb/test/tools/lldb-gdbserver/TestGdbRemoteAttach.py) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/TestGdbRemoteAuxvSupport.py (renamed from lldb/test/tools/lldb-gdbserver/TestGdbRemoteAuxvSupport.py) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/TestGdbRemoteExpeditedRegisters.py (renamed from lldb/test/tools/lldb-gdbserver/TestGdbRemoteExpeditedRegisters.py) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/TestGdbRemoteKill.py (renamed from lldb/test/tools/lldb-gdbserver/TestGdbRemoteKill.py) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/TestGdbRemoteProcessInfo.py (renamed from lldb/test/tools/lldb-gdbserver/TestGdbRemoteProcessInfo.py) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/TestGdbRemoteRegisterState.py (renamed from lldb/test/tools/lldb-gdbserver/TestGdbRemoteRegisterState.py) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/TestGdbRemoteSingleStep.py (renamed from lldb/test/tools/lldb-gdbserver/TestGdbRemoteSingleStep.py) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py (renamed from lldb/test/tools/lldb-gdbserver/TestGdbRemoteThreadsInStopReply.py) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py (renamed from lldb/test/tools/lldb-gdbserver/TestGdbRemote_qThreadStopInfo.py) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/TestGdbRemote_vCont.py (renamed from lldb/test/tools/lldb-gdbserver/TestGdbRemote_vCont.py) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/TestLldbGdbServer.py (renamed from lldb/test/tools/lldb-gdbserver/TestLldbGdbServer.py) | 13 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/commandline/TestStubReverseConnect.py (renamed from lldb/test/tools/lldb-gdbserver/commandline/TestStubReverseConnect.py) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/commandline/TestStubSetSID.py (renamed from lldb/test/tools/lldb-gdbserver/commandline/TestStubSetSID.py) | 2 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/gdbremote_testcase.py (renamed from lldb/test/tools/lldb-gdbserver/gdbremote_testcase.py) | 8 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/inferior-crash/Makefile (renamed from lldb/test/tools/lldb-gdbserver/inferior-crash/Makefile) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py (renamed from lldb/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteAbort.py) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py (renamed from lldb/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteSegFault.py) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/inferior-crash/main.cpp (renamed from lldb/test/tools/lldb-gdbserver/inferior-crash/main.cpp) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/lldbgdbserverutils.py (renamed from lldb/test/tools/lldb-gdbserver/lldbgdbserverutils.py) | 14 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/main.cpp (renamed from lldb/test/tools/lldb-gdbserver/main.cpp) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/socket_packet_pump.py (renamed from lldb/test/tools/lldb-gdbserver/socket_packet_pump.py) | 0 | ||||
| -rw-r--r-- | lldb/test/tools/lldb-server/test/test_lldbgdbserverutils.py (renamed from lldb/test/tools/lldb-gdbserver/test/test_lldbgdbserverutils.py) | 0 | ||||
| -rw-r--r-- | lldb/tools/lldb-server/lldb-gdbserver.cpp | 12 | ||||
| -rw-r--r-- | lldb/tools/lldb-server/lldb-platform.cpp | 4 |
28 files changed, 31 insertions, 31 deletions
diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py index 500ffb6db34..761aee0d5e5 100755 --- a/lldb/test/dotest.py +++ b/lldb/test/dotest.py @@ -136,7 +136,7 @@ dont_do_dwarf_test = False # Something for Windows here? dont_do_debugserver_test = "linux" in sys.platform or "freebsd" in sys.platform -# Don't do lldb-gdbserver (llgs) tests on anything except Linux. +# Don't do lldb-server (llgs) tests on anything except Linux. dont_do_llgs_test = not ("linux" in sys.platform) # The blacklist is optional (-b blacklistFile) and allows a central place to skip diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index ad65cd92144..ae0e7bd9aad 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -494,7 +494,7 @@ def debugserver_test(func): return wrapper def llgs_test(func): - """Decorate the item as a lldb-gdbserver test.""" + """Decorate the item as a lldb-server test.""" if isinstance(func, type) and issubclass(func, unittest2.TestCase): raise Exception("@llgs_test can only be used to decorate a test method") @wraps(func) diff --git a/lldb/test/tools/lldb-mi/signal/TestMiSignal.py b/lldb/test/tools/lldb-mi/signal/TestMiSignal.py index d66117f1b90..3001b4c40f9 100644 --- a/lldb/test/tools/lldb-mi/signal/TestMiSignal.py +++ b/lldb/test/tools/lldb-mi/signal/TestMiSignal.py @@ -13,6 +13,7 @@ import unittest2 class MiSignalTestCase(lldbmi_testcase.MiTestCaseBase): mydir = TestBase.compute_mydir(__file__) + lldb_server_path = "lldb-server" @lldbmi_test @expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows") @@ -88,7 +89,7 @@ class MiSignalTestCase(lldbmi_testcase.MiTestCaseBase): """Test that 'lldb-mi --interpreter' notifies after it was stopped on entry (remote).""" # Prepare debugserver - sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "lldb-gdbserver"))) + sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", lldb_server_path))) import lldbgdbserverutils debugserver_exe = lldbgdbserverutils.get_debugserver_exe() if not debugserver_exe: @@ -164,7 +165,7 @@ class MiSignalTestCase(lldbmi_testcase.MiTestCaseBase): """Test that 'lldb-mi --interpreter' notifies after it was stopped when segfault occurred (remote).""" # Prepare debugserver - sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "lldb-gdbserver"))) + sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "lldb-server"))) import lldbgdbserverutils debugserver_exe = lldbgdbserverutils.get_debugserver_exe() if not debugserver_exe: diff --git a/lldb/test/tools/lldb-gdbserver/Makefile b/lldb/test/tools/lldb-server/Makefile index d5b3e135723..d5b3e135723 100644 --- a/lldb/test/tools/lldb-gdbserver/Makefile +++ b/lldb/test/tools/lldb-server/Makefile diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteAttach.py b/lldb/test/tools/lldb-server/TestGdbRemoteAttach.py index fd16f3f4681..fd16f3f4681 100644 --- a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteAttach.py +++ b/lldb/test/tools/lldb-server/TestGdbRemoteAttach.py diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteAuxvSupport.py b/lldb/test/tools/lldb-server/TestGdbRemoteAuxvSupport.py index 152d6153529..152d6153529 100644 --- a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteAuxvSupport.py +++ b/lldb/test/tools/lldb-server/TestGdbRemoteAuxvSupport.py diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteExpeditedRegisters.py b/lldb/test/tools/lldb-server/TestGdbRemoteExpeditedRegisters.py index bf4d0455161..bf4d0455161 100644 --- a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteExpeditedRegisters.py +++ b/lldb/test/tools/lldb-server/TestGdbRemoteExpeditedRegisters.py diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteKill.py b/lldb/test/tools/lldb-server/TestGdbRemoteKill.py index 121093af36e..121093af36e 100644 --- a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteKill.py +++ b/lldb/test/tools/lldb-server/TestGdbRemoteKill.py diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteProcessInfo.py b/lldb/test/tools/lldb-server/TestGdbRemoteProcessInfo.py index 17209e2092a..17209e2092a 100644 --- a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteProcessInfo.py +++ b/lldb/test/tools/lldb-server/TestGdbRemoteProcessInfo.py diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteRegisterState.py b/lldb/test/tools/lldb-server/TestGdbRemoteRegisterState.py index 895f73a9ce6..895f73a9ce6 100644 --- a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteRegisterState.py +++ b/lldb/test/tools/lldb-server/TestGdbRemoteRegisterState.py diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteSingleStep.py b/lldb/test/tools/lldb-server/TestGdbRemoteSingleStep.py index ceb562b3541..ceb562b3541 100644 --- a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteSingleStep.py +++ b/lldb/test/tools/lldb-server/TestGdbRemoteSingleStep.py diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteThreadsInStopReply.py b/lldb/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py index ac0a3921d33..ac0a3921d33 100644 --- a/lldb/test/tools/lldb-gdbserver/TestGdbRemoteThreadsInStopReply.py +++ b/lldb/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemote_qThreadStopInfo.py b/lldb/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py index 18275030444..18275030444 100644 --- a/lldb/test/tools/lldb-gdbserver/TestGdbRemote_qThreadStopInfo.py +++ b/lldb/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py diff --git a/lldb/test/tools/lldb-gdbserver/TestGdbRemote_vCont.py b/lldb/test/tools/lldb-server/TestGdbRemote_vCont.py index 200024784d1..200024784d1 100644 --- a/lldb/test/tools/lldb-gdbserver/TestGdbRemote_vCont.py +++ b/lldb/test/tools/lldb-server/TestGdbRemote_vCont.py diff --git a/lldb/test/tools/lldb-gdbserver/TestLldbGdbServer.py b/lldb/test/tools/lldb-server/TestLldbGdbServer.py index 94ada4f417f..9e1ef34a1ff 100644 --- a/lldb/test/tools/lldb-gdbserver/TestLldbGdbServer.py +++ b/lldb/test/tools/lldb-server/TestLldbGdbServer.py @@ -1,8 +1,8 @@ """ Test case for testing the gdbremote protocol. -Tests run against debugserver and lldb-gdbserver (llgs). -lldb-gdbserver tests run where the lldb-gdbserver exe is +Tests run against debugserver and lldb-server (llgs). +lldb-server tests run where the lldb-server exe is available. This class will be broken into smaller test case classes by @@ -52,8 +52,8 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase): self.add_no_ack_remote_stream() self.test_sequence.add_log_lines( - ["lldb-gdbserver < 26> read packet: $QThreadSuffixSupported#e4", - "lldb-gdbserver < 6> send packet: $OK#9a"], + ["lldb-server < 26> read packet: $QThreadSuffixSupported#e4", + "lldb-server < 6> send packet: $OK#9a"], True) self.expect_gdbremote_sequence() @@ -74,8 +74,8 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase): self.add_no_ack_remote_stream() self.test_sequence.add_log_lines( - ["lldb-gdbserver < 27> read packet: $QListThreadsInStopReply#21", - "lldb-gdbserver < 6> send packet: $OK#9a"], + ["lldb-server < 27> read packet: $QListThreadsInStopReply#21", + "lldb-server < 6> send packet: $OK#9a"], True) self.expect_gdbremote_sequence() @@ -95,7 +95,6 @@ class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase): # build launch args launch_args = [os.path.abspath('a.out')] - self.add_no_ack_remote_stream() self.test_sequence.add_log_lines( ["read packet: %s" % lldbgdbserverutils.build_gdbremote_A_packet(launch_args), diff --git a/lldb/test/tools/lldb-gdbserver/commandline/TestStubReverseConnect.py b/lldb/test/tools/lldb-server/commandline/TestStubReverseConnect.py index 642cf19a381..642cf19a381 100644 --- a/lldb/test/tools/lldb-gdbserver/commandline/TestStubReverseConnect.py +++ b/lldb/test/tools/lldb-server/commandline/TestStubReverseConnect.py diff --git a/lldb/test/tools/lldb-gdbserver/commandline/TestStubSetSID.py b/lldb/test/tools/lldb-server/commandline/TestStubSetSID.py index 65a4bb4ae3a..53b63959da3 100644 --- a/lldb/test/tools/lldb-gdbserver/commandline/TestStubSetSID.py +++ b/lldb/test/tools/lldb-server/commandline/TestStubSetSID.py @@ -29,7 +29,7 @@ class TestStubSetSIDTestCase(gdbremote_testcase.GdbRemoteTestCaseBase): server = self.launch_debug_monitor() self.assertIsNotNone(server) self.assertTrue(server.isalive()) - server.expect("(debugserver|lldb-gdbserver)", timeout=10) + server.expect("(debugserver|lldb-server)", timeout=10) # Get the process id for the stub. return os.getsid(server.pid) diff --git a/lldb/test/tools/lldb-gdbserver/gdbremote_testcase.py b/lldb/test/tools/lldb-server/gdbremote_testcase.py index d2dc805154c..2ea0db920d1 100644 --- a/lldb/test/tools/lldb-gdbserver/gdbremote_testcase.py +++ b/lldb/test/tools/lldb-server/gdbremote_testcase.py @@ -134,9 +134,9 @@ class GdbRemoteTestCaseBase(TestBase): return stub_port def init_llgs_test(self, use_named_pipe=True): - self.debug_monitor_exe = get_lldb_gdbserver_exe() + self.debug_monitor_exe = get_lldb_server_exe() if not self.debug_monitor_exe: - self.skipTest("lldb_gdbserver exe not found") + self.skipTest("lldb-server exe not found") dname = os.path.join(os.environ["LLDB_TEST"], os.environ["LLDB_SESSION_DIRNAME"]) self.debug_monitor_extra_args = " gdbserver -c 'log enable -T -f {}/process-{}.log lldb break process thread' -c 'log enable -T -f {}/packets-{}.log gdb-remote packets'".format(dname, self.id(), dname, self.id()) @@ -161,7 +161,7 @@ class GdbRemoteTestCaseBase(TestBase): def shutdown_socket(): if sock: try: - # send the kill packet so lldb-gdbserver shuts down gracefully + # send the kill packet so lldb-server shuts down gracefully sock.sendall(GdbRemoteTestCaseBase._GDBREMOTE_KILL_PACKET) except: logger.warning("failed to send kill packet to debug monitor: {}; ignoring".format(sys.exc_info()[0])) @@ -204,7 +204,7 @@ class GdbRemoteTestCaseBase(TestBase): # Start the server. server = pexpect.spawn(commandline, logfile=logfile) self.assertIsNotNone(server) - server.expect(r"(debugserver|lldb-gdbserver)", timeout=10) + server.expect(r"(debugserver|lldb-server)", timeout=10) # If we're receiving the stub's listening port from the named pipe, do that here. if self.named_pipe: diff --git a/lldb/test/tools/lldb-gdbserver/inferior-crash/Makefile b/lldb/test/tools/lldb-server/inferior-crash/Makefile index 93052df3111..93052df3111 100644 --- a/lldb/test/tools/lldb-gdbserver/inferior-crash/Makefile +++ b/lldb/test/tools/lldb-server/inferior-crash/Makefile diff --git a/lldb/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteAbort.py b/lldb/test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py index 16ca370f300..16ca370f300 100644 --- a/lldb/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteAbort.py +++ b/lldb/test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py diff --git a/lldb/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteSegFault.py b/lldb/test/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py index c7494bdb7ef..c7494bdb7ef 100644 --- a/lldb/test/tools/lldb-gdbserver/inferior-crash/TestGdbRemoteSegFault.py +++ b/lldb/test/tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py diff --git a/lldb/test/tools/lldb-gdbserver/inferior-crash/main.cpp b/lldb/test/tools/lldb-server/inferior-crash/main.cpp index 69d60071aa4..69d60071aa4 100644 --- a/lldb/test/tools/lldb-gdbserver/inferior-crash/main.cpp +++ b/lldb/test/tools/lldb-server/inferior-crash/main.cpp diff --git a/lldb/test/tools/lldb-gdbserver/lldbgdbserverutils.py b/lldb/test/tools/lldb-server/lldbgdbserverutils.py index e49b0b284c6..b6f8f3925d3 100644 --- a/lldb/test/tools/lldb-gdbserver/lldbgdbserverutils.py +++ b/lldb/test/tools/lldb-server/lldbgdbserverutils.py @@ -1,4 +1,4 @@ -"""Module for supporting unit testing of the lldb-gdbserver debug monitor exe. +"""Module for supporting unit testing of the lldb-server debug monitor exe. """ import os @@ -49,8 +49,8 @@ def _get_debug_monitor_from_lldb(lldb_exe, debug_monitor_basename): return None -def get_lldb_gdbserver_exe(): - """Return the lldb-gdbserver exe path. +def get_lldb_server_exe(): + """Return the lldb-server exe path. Returns: A path to the lldb-gdbserver exe if it is found to exist; otherwise, @@ -86,7 +86,7 @@ def get_debugserver_exe(): return None -_LOG_LINE_REGEX = re.compile(r'^(lldb-gdbserver|debugserver)\s+<\s*(\d+)>' + +_LOG_LINE_REGEX = re.compile(r'^(lldb-server|debugserver)\s+<\s*(\d+)>' + '\s+(read|send)\s+packet:\s+(.+)$') @@ -831,8 +831,8 @@ def process_is_running(pid, unknown_value=True): return pid in process_ids if __name__ == '__main__': - EXE_PATH = get_lldb_gdbserver_exe() + EXE_PATH = get_lldb_server_exe() if EXE_PATH: - print "lldb-gdbserver path detected: {}".format(EXE_PATH) + print "lldb-server path detected: {}".format(EXE_PATH) else: - print "lldb-gdbserver could not be found" + print "lldb-server could not be found" diff --git a/lldb/test/tools/lldb-gdbserver/main.cpp b/lldb/test/tools/lldb-server/main.cpp index 2c38f475147..2c38f475147 100644 --- a/lldb/test/tools/lldb-gdbserver/main.cpp +++ b/lldb/test/tools/lldb-server/main.cpp diff --git a/lldb/test/tools/lldb-gdbserver/socket_packet_pump.py b/lldb/test/tools/lldb-server/socket_packet_pump.py index 2d35898fd5d..2d35898fd5d 100644 --- a/lldb/test/tools/lldb-gdbserver/socket_packet_pump.py +++ b/lldb/test/tools/lldb-server/socket_packet_pump.py diff --git a/lldb/test/tools/lldb-gdbserver/test/test_lldbgdbserverutils.py b/lldb/test/tools/lldb-server/test/test_lldbgdbserverutils.py index 5442681a191..5442681a191 100644 --- a/lldb/test/tools/lldb-gdbserver/test/test_lldbgdbserverutils.py +++ b/lldb/test/tools/lldb-server/test/test_lldbgdbserverutils.py diff --git a/lldb/tools/lldb-server/lldb-gdbserver.cpp b/lldb/tools/lldb-server/lldb-gdbserver.cpp index 5bd24dd607c..076c7c4fe2f 100644 --- a/lldb/tools/lldb-server/lldb-gdbserver.cpp +++ b/lldb/tools/lldb-server/lldb-gdbserver.cpp @@ -42,7 +42,7 @@ #include "Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h" #ifndef LLGS_PROGRAM_NAME -#define LLGS_PROGRAM_NAME "lldb-gdbserver" +#define LLGS_PROGRAM_NAME "lldb-server" #endif #ifndef LLGS_VERSION_STR @@ -98,9 +98,9 @@ signal_handler(int signo) { Log *log (GetLogIfAnyCategoriesSet(LIBLLDB_LOG_PROCESS)); - fprintf (stderr, "lldb-gdbserver:%s received signal %d\n", __FUNCTION__, signo); + fprintf (stderr, "lldb-server:%s received signal %d\n", __FUNCTION__, signo); if (log) - log->Printf ("lldb-gdbserver:%s received signal %d", __FUNCTION__, signo); + log->Printf ("lldb-server:%s received signal %d", __FUNCTION__, signo); switch (signo) { @@ -112,7 +112,7 @@ signal_handler(int signo) // For now, swallow SIGHUP. if (log) - log->Printf ("lldb-gdbserver:%s swallowing SIGHUP (receive count=%d)", __FUNCTION__, g_sighup_received_count); + log->Printf ("lldb-server:%s swallowing SIGHUP (receive count=%d)", __FUNCTION__, g_sighup_received_count); signal (SIGHUP, signal_handler); break; } @@ -644,7 +644,7 @@ main_gdbserver (int argc, char *argv[]) Log *log(lldb_private::GetLogIfAnyCategoriesSet (GDBR_LOG_VERBOSE)); if (log) { - log->Printf ("lldb-gdbserver launch"); + log->Printf ("lldb-server launch"); for (int i = 0; i < argc; i++) { log->Printf ("argv[%i] = '%s'", i, argv[i]); @@ -687,7 +687,7 @@ main_gdbserver (int argc, char *argv[]) ConnectToRemote (gdb_server, reverse_connect, host_and_port, progname, subcommand, named_pipe_path.c_str ()); - fprintf(stderr, "lldb-gdbserver exiting...\n"); + fprintf(stderr, "lldb-server exiting...\n"); return 0; } diff --git a/lldb/tools/lldb-server/lldb-platform.cpp b/lldb/tools/lldb-server/lldb-platform.cpp index d93e09906e3..e24cd29af3f 100644 --- a/lldb/tools/lldb-server/lldb-platform.cpp +++ b/lldb/tools/lldb-server/lldb-platform.cpp @@ -82,7 +82,7 @@ signal_handler(int signo) // Use SIGINT first, if that does not work, use SIGHUP as a last resort. // And we should not call exit() here because it results in the global destructors // to be invoked and wreaking havoc on the threads still running. - Host::SystemLog(Host::eSystemLogWarning, "SIGHUP received, exiting lldb-platform...\n"); + Host::SystemLog(Host::eSystemLogWarning, "SIGHUP received, exiting lldb-server...\n"); abort(); break; } @@ -305,7 +305,7 @@ main_platform (int argc, char *argv[]) } } while (g_stay_alive); - fprintf(stderr, "lldb-platform exiting...\n"); + fprintf(stderr, "lldb-server exiting...\n"); return 0; } |

