[Lldb-commits] [lldb] r155023 - in /lldb/branches/lldb-platform-work/source/Host: common/Host.cpp macosx/Host.mm

Enrico Granata egranata at apple.com
Wed Apr 18 11:36:59 PDT 2012


Author: enrico
Date: Wed Apr 18 13:36:59 2012
New Revision: 155023

URL: http://llvm.org/viewvc/llvm-project?rev=155023&view=rev
Log:
Moving RunProgramAndGetExitCode() into the common host layer instead of the Mac-specific (thanks to Viktor Kutuzov <vkutuzov at accesssoftek.com> for pointing this out)

Modified:
    lldb/branches/lldb-platform-work/source/Host/common/Host.cpp
    lldb/branches/lldb-platform-work/source/Host/macosx/Host.mm

Modified: lldb/branches/lldb-platform-work/source/Host/common/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/lldb-platform-work/source/Host/common/Host.cpp?rev=155023&r1=155022&r2=155023&view=diff
==============================================================================
--- lldb/branches/lldb-platform-work/source/Host/common/Host.cpp (original)
+++ lldb/branches/lldb-platform-work/source/Host/common/Host.cpp Wed Apr 18 13:36:59 2012
@@ -1531,3 +1531,12 @@
     return file_spec.Exists();
 }
 
+uint32_t
+Host::RunProgramAndGetExitCode (const char *cmd_line)
+{
+    int exit_code;
+    Error err(RunShellCommand(cmd_line, NULL, &exit_code, NULL, NULL, 10));
+    if (err.Fail())
+        return UINT32_MAX;
+    return exit_code;
+}

Modified: lldb/branches/lldb-platform-work/source/Host/macosx/Host.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/lldb-platform-work/source/Host/macosx/Host.mm?rev=155023&r1=155022&r2=155023&view=diff
==============================================================================
--- lldb/branches/lldb-platform-work/source/Host/macosx/Host.mm (original)
+++ lldb/branches/lldb-platform-work/source/Host/macosx/Host.mm Wed Apr 18 13:36:59 2012
@@ -1845,16 +1845,6 @@
 }
 
 uint32_t
-Host::RunProgramAndGetExitCode (const char *cmd_line)
-{
-    int exit_code;
-    Error err(RunShellCommand(cmd_line, NULL, &exit_code, NULL, NULL, 10));
-    if (err.Fail())
-        return UINT32_MAX;
-    return exit_code;
-}
-
-uint32_t
 Host::MakeDirectory (const char* path, mode_t mode)
 {
     return ::mkdir(path,mode);





More information about the lldb-commits mailing list