[Lldb-commits] [lldb] r127393 - in /lldb/trunk: lib/Makefile source/Plugins/Makefile source/Plugins/Platform/Linux/Makefile source/Plugins/Platform/MacOSX/Makefile source/Plugins/Platform/Makefile source/lldb.cpp
Stephen Wilson
wilsons at start.ca
Wed Mar 9 19:08:29 PST 2011
Author: wilsons
Date: Wed Mar 9 21:08:28 2011
New Revision: 127393
URL: http://llvm.org/viewvc/llvm-project?rev=127393&view=rev
Log:
Add Makefile support for the Platform plugins.
This patch supports building the Linux platform plugin, and should also support
the MacOSX plugin as well (the MacOSX side has not been tested, unfortunately).
A small typo was corrected in lldb.cpp to initialize the new platform code on
Linux.
Added:
lldb/trunk/source/Plugins/Platform/Linux/Makefile
lldb/trunk/source/Plugins/Platform/MacOSX/Makefile
lldb/trunk/source/Plugins/Platform/Makefile
Modified:
lldb/trunk/lib/Makefile
lldb/trunk/source/Plugins/Makefile
lldb/trunk/source/lldb.cpp
Modified: lldb/trunk/lib/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lib/Makefile?rev=127393&r1=127392&r2=127393&view=diff
==============================================================================
--- lldb/trunk/lib/Makefile (original)
+++ lldb/trunk/lib/Makefile Wed Mar 9 21:08:28 2011
@@ -65,12 +65,14 @@
lldbPluginObjectContainerUniversalMachO.a \
lldbPluginObjectFileMachO.a \
lldbPluginProcessGDBRemote.a \
- lldbPluginSymbolVendorMacOSX.a
+ lldbPluginSymbolVendorMacOSX.a \
+ lldbPluginPlatformMacOSX.a
endif
ifeq ($(HOST_OS),Linux)
USEDLIBS += lldbPluginProcessLinux.a \
- lldbPluginDynamicLoaderLinux.a
+ lldbPluginDynamicLoaderLinux.a \
+ lldbPluginPlatformLinux.a
endif
include $(LEVEL)/Makefile.common
Modified: lldb/trunk/source/Plugins/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Makefile?rev=127393&r1=127392&r2=127393&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Makefile (original)
+++ lldb/trunk/source/Plugins/Makefile Wed Mar 9 21:08:28 2011
@@ -14,7 +14,8 @@
DIRS := ABI/MacOSX-i386 ABI/SysV-x86_64 Disassembler/llvm \
ObjectContainer/BSD-Archive ObjectFile/ELF SymbolFile/DWARF \
- SymbolFile/Symtab Process/Utility DynamicLoader/Static
+ SymbolFile/Symtab Process/Utility DynamicLoader/Static \
+ Platform
ifeq ($(HOST_OS),Darwin)
DIRS += DynamicLoader/MacOSX-DYLD ObjectContainer/Universal-Mach-O \
Added: lldb/trunk/source/Plugins/Platform/Linux/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/Linux/Makefile?rev=127393&view=auto
==============================================================================
--- lldb/trunk/source/Plugins/Platform/Linux/Makefile (added)
+++ lldb/trunk/source/Plugins/Platform/Linux/Makefile Wed Mar 9 21:08:28 2011
@@ -0,0 +1,14 @@
+##===- source/Plugins/Platform/Linux/Makefile --------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+LLDB_LEVEL := ../../../..
+LIBRARYNAME := lldbPluginPlatformLinux
+BUILD_ARCHIVE = 1
+
+include $(LLDB_LEVEL)/Makefile
Added: lldb/trunk/source/Plugins/Platform/MacOSX/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/MacOSX/Makefile?rev=127393&view=auto
==============================================================================
--- lldb/trunk/source/Plugins/Platform/MacOSX/Makefile (added)
+++ lldb/trunk/source/Plugins/Platform/MacOSX/Makefile Wed Mar 9 21:08:28 2011
@@ -0,0 +1,15 @@
+##===- source/Plugins/Platform/MacOSX/Makefile -------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+LLDB_LEVEL := ../../../..
+LIBRARYNAME := lldbPluginPlatformMacOSX
+BUILD_ARCHIVE = 1
+
+include $(LLDB_LEVEL)/Makefile
+
Added: lldb/trunk/source/Plugins/Platform/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/Makefile?rev=127393&view=auto
==============================================================================
--- lldb/trunk/source/Plugins/Platform/Makefile (added)
+++ lldb/trunk/source/Plugins/Platform/Makefile Wed Mar 9 21:08:28 2011
@@ -0,0 +1,24 @@
+##===- source/Plugins/Platform/Makefile --------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+LLDB_LEVEL := ../../..
+
+include $(LLDB_LEVEL)/../../Makefile.config
+
+DIRS :=
+
+ifeq ($(HOST_OS),Darwin)
+ DIRS += MacOSX
+endif
+
+ifeq ($(HOST_OS),Linux)
+ DIRS += Linux
+endif
+
+include $(LLDB_LEVEL)/Makefile
Modified: lldb/trunk/source/lldb.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/lldb.cpp?rev=127393&r1=127392&r2=127393&view=diff
==============================================================================
--- lldb/trunk/source/lldb.cpp (original)
+++ lldb/trunk/source/lldb.cpp Wed Mar 9 21:08:28 2011
@@ -104,7 +104,7 @@
PlatformMacOSX::Initialize();
#endif
#if defined (__linux__)
- ProcessLinux::Initialize();
+ PlatformLinux::Initialize();
ProcessLinux::Initialize();
DynamicLoaderLinuxDYLD::Initialize();
#endif
More information about the lldb-commits
mailing list