Index: lib/Makefile =================================================================== --- lib/Makefile +++ lib/Makefile @@ -1,10 +1,10 @@ ##===- source/Makefile -------------------------------------*- Makefile -*-===## -# +# # The LLVM Compiler Infrastructure # # This file is distributed under the University of Illinois Open Source # License. See LICENSE.TXT for details. -# +# ##===----------------------------------------------------------------------===## LEVEL := ../../.. @@ -28,9 +28,9 @@ lldbCore.a \ lldbDataFormatters.a \ lldbExpression.a \ - lldbHostCommon.a \ - lldbInitialize.a \ - lldbInitAndLog.a \ + lldbInitialization.a \ + lldbHost.a \ + lldbBase.a \ lldbInterpreter.a \ lldbPluginABIMacOSX_arm.a \ lldbPluginABIMacOSX_arm64.a \ @@ -46,33 +46,33 @@ lldbPluginABISysV_hexagon.a \ lldbPluginDisassemblerLLVM.a \ lldbPluginDynamicLoaderStatic.a \ - lldbPluginDynamicLoaderPOSIX.a \ + lldbPluginDynamicLoaderPosixDYLD.a \ lldbPluginDynamicLoaderHexagon.a \ - lldbPluginDynamicLoaderMacOSX.a \ + lldbPluginDynamicLoaderMacOSXDYLD.a \ lldbPluginDynamicLoaderWindowsDYLD.a \ - lldbPluginEmulateInstructionARM.a \ - lldbPluginEmulateInstructionARM64.a \ - lldbPluginEmulateInstructionMIPS.a \ - lldbPluginEmulateInstructionMIPS64.a \ + lldbPluginInstructionARM.a \ + lldbPluginInstructionARM64.a \ + lldbPluginInstructionMIPS.a \ + lldbPluginInstructionMIPS64.a \ lldbPluginInstrumentationRuntimeAddressSanitizer.a \ - lldbPluginLanguageRuntimeCPlusPlusItaniumABI.a \ - lldbPluginLanguageRuntimeObjCAppleObjCRuntime.a \ - lldbPluginLanguageRuntimeRenderScriptRuntime.a \ + lldbPluginCXXItaniumABI.a \ + lldbPluginAppleObjCRuntime.a \ + lldbPluginRenderScriptRuntime.a \ lldbPluginMemoryHistoryASan.a \ lldbPluginObjectContainerBSDArchive.a \ - lldbPluginObjectContainerUniversalMachO.a \ + lldbPluginObjectContainerMachOArchive.a \ lldbPluginObjectFileELF.a \ lldbPluginObjectFileJIT.a \ lldbPluginSymbolVendorELF.a \ lldbPluginObjectFilePECOFF.a \ - lldbPluginOperatingSystemPython.a \ - lldbPluginPlatformGDBServer.a \ + lldbPluginOSPython.a \ + lldbPluginPlatformGDB.a \ lldbPluginProcessGDBRemote.a \ lldbPluginSymbolFileDWARF.a \ lldbPluginSymbolFileSymtab.a \ lldbPluginSystemRuntimeMacOSX.a \ lldbPluginUnwindAssemblyInstEmulation.a \ - lldbPluginUnwindAssemblyx86.a \ + lldbPluginUnwindAssemblyX86.a \ lldbPluginUtility.a \ lldbSymbol.a \ lldbTarget.a \ @@ -113,9 +113,7 @@ linker option ifeq ($(HOST_OS),Darwin) - USEDLIBS += lldbHostMacOSX.a \ - lldbHostPosix.a \ - lldbPluginDynamicLoaderDarwinKernel.a \ + USEDLIBS += lldbPluginDynamicLoaderDarwinKernel.a \ lldbPluginObjectFileMachO.a \ lldbPluginSymbolVendorMacOSX.a \ lldbPluginProcessDarwin.a \ @@ -125,24 +123,19 @@ endif ifeq ($(HOST_OS),Linux) - USEDLIBS += lldbHostLinux.a \ - lldbHostPosix.a \ - lldbPluginProcessLinux.a \ + USEDLIBS += lldbPluginProcessLinux.a \ lldbPluginProcessPOSIX.a \ lldbPluginProcessElfCore.a \ lldbPluginJITLoaderGDB.a endif ifeq ($(HOST_OS),MingW) - USEDLIBS += lldbHostWindows.a \ - lldbPluginProcessElfCore.a \ + USEDLIBS += lldbPluginProcessElfCore.a \ lldbPluginJITLoaderGDB.a endif ifneq (,$(filter $(HOST_OS), FreeBSD GNU/kFreeBSD)) - USEDLIBS += lldbHostFreeBSD.a \ - lldbHostPosix.a \ - lldbPluginProcessPOSIX.a \ + USEDLIBS += lldbPluginProcessPOSIX.a \ lldbPluginProcessFreeBSD.a \ lldbPluginProcessElfCore.a \ lldbPluginJITLoaderGDB.a @@ -165,7 +158,7 @@ -Wl,$(LLDB_SUBMIT_VERSION).$(LLDB_SUBMIT_SUBVERSION) \ -Wl,-compatibility_version -Wl,1 endif - # extra options to override libtool defaults + # extra options to override libtool defaults LLVMLibsOptions += -F/System/Library/Frameworks -F/System/Library/PrivateFrameworks LLVMLibsOptions += -framework Foundation -framework CoreFoundation LLVMLibsOptions += -framework CoreServices -framework Carbon -framework Security Index: source/Host/Makefile =================================================================== --- source/Host/Makefile +++ source/Host/Makefile @@ -1,41 +1,50 @@ ##===- source/Host/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 := ../.. +LEVEL := $(LLDB_LEVEL)/../.. -include $(LLDB_LEVEL)/../../Makefile.config +include $(LEVEL)/Makefile.config -DIRS := common +define DIR_SOURCES +SOURCES += $$(addprefix $(1)/,$$(notdir $$(wildcard $$(PROJ_SRC_DIR)/$(1)/*.cpp \ + $$(PROJ_SRC_DIR)/*.cc $$(PROJ_SRC_DIR)/$(1)/*.c))) +endef + +$(eval $(call DIR_SOURCES,common)) ifeq ($(HOST_OS),Darwin) -DIRS += posix -DIRS += macosx +$(eval DIR_SOURCES,posix) +$(eval DIR_SOURCES,macosx) endif ifeq ($(HOST_OS),Linux) -DIRS += posix -DIRS += linux +$(eval $(call DIR_SOURCES,posix)) +$(eval $(call DIR_SOURCES,linux)) endif ifneq (,$(filter $(HOST_OS), FreeBSD GNU/kFreeBSD)) -DIRS += posix -DIRS += freebsd +$(eval DIR_SOURCES,posix) +$(eval DIR_SOURCES,freebsd) endif ifeq ($(HOST_OS),MingW) -DIRS += windows +$(eval DIR_SOURCES,windows) endif ifeq ($(HOST_OS),Android) -DIRS += posix -DIRS += linux -DIRS += android +$(eval DIR_SOURCES,posix) +$(eval DIR_SOURCES,linux) +$(eval DIR_SOURCES,android) endif +LIBRARYNAME := lldbHost +BUILD_ARCHIVE = 1 + include $(LLDB_LEVEL)/Makefile Index: source/Host/common/Makefile =================================================================== --- source/Host/common/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -##===- source/Host/common/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 := lldbHostCommon -BUILD_ARCHIVE = 1 - -include $(LLDB_LEVEL)/Makefile Index: source/Host/freebsd/Makefile =================================================================== --- source/Host/freebsd/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -##===- source/Host/freebsd/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 := lldbHostFreeBSD -BUILD_ARCHIVE = 1 - -CPP.Flags += -I/usr/local/include - -include $(LLDB_LEVEL)/Makefile Index: source/Host/linux/Makefile =================================================================== --- source/Host/linux/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -##===- source/Host/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 := lldbHostLinux -BUILD_ARCHIVE = 1 - -include $(LLDB_LEVEL)/Makefile Index: source/Host/macosx/Makefile =================================================================== --- source/Host/macosx/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -##===- source/Host/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 := lldbHostMacOSX -BUILD_ARCHIVE = 1 - -CFCPP_SOURCES = \ - $(addprefix cfcpp/,$(notdir $(wildcard $(PROJ_SRC_DIR)/cfcpp/*.cpp))) -SOURCES = $(notdir $(wildcard $(PROJ_SRC_DIR)/*.cpp $(PROJ_SRC_DIR)/*.mm)) \ - $(CFCPP_SOURCES) - -include $(LLDB_LEVEL)/Makefile - -CFCPP_BaseNameSources := $(sort $(basename $(CFCPP_SOURCES))) -CFCPP_OBJECTS := $(CFCPP_BaseNameSources:%=$(ObjDir)/%.o) - -# Make sure the cfcpp output directory exists -$(CFCPP_OBJECTS): $(ObjDir)/cfcpp/.dir - Index: source/Host/posix/Makefile =================================================================== --- source/Host/posix/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -##===- source/Host/posix/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 := lldbHostPosix -BUILD_ARCHIVE = 1 - -include $(LLDB_LEVEL)/Makefile Index: source/Host/windows/Makefile =================================================================== --- source/Host/windows/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -##===- source/Host/windows/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 := lldbHostWindows -BUILD_ARCHIVE = 1 - -SOURCES = $(notdir $(wildcard $(PROJ_SRC_DIR)/*.cpp )) $(PROJ_SRC_DIR)/../posix/ConnectionFileDescriptorPosix.cpp - -include $(LLDB_LEVEL)/Makefile Index: source/Initialization/Makefile =================================================================== --- source/Initialization/Makefile +++ source/Initialization/Makefile @@ -8,7 +8,7 @@ ##===----------------------------------------------------------------------===## LLDB_LEVEL := ../.. -LIBRARYNAME := lldbInitialize +LIBRARYNAME := lldbInitialization BUILD_ARCHIVE = 1 include $(LLDB_LEVEL)/Makefile Index: source/Makefile =================================================================== --- source/Makefile +++ source/Makefile @@ -1,21 +1,21 @@ ##===- source/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 := .. PARALLEL_DIRS := API Initialization Breakpoint Commands Core DataFormatters Expression Host Interpreter Plugins Symbol Target Utility -LIBRARYNAME := lldbInitAndLog +LIBRARYNAME := lldbBase BUILD_ARCHIVE = 1 # Although LLVM makefiles provide $(HOST_OS), we cannot use that here because it is defined by including the $(LLDB_LEVEL)/Makefile # below. Instead, we use uname -s to detect the HOST_OS and generate LLDB_vers.c only on Mac. On Linux, the version number is # calculated in the same way as Clang's version. -ifeq (Darwin,$(shell uname -s)) +ifeq (Darwin,$(shell uname -s)) BUILT_SOURCES = LLDB_vers.c endif Index: source/Plugins/DynamicLoader/MacOSX-DYLD/Makefile =================================================================== --- source/Plugins/DynamicLoader/MacOSX-DYLD/Makefile +++ source/Plugins/DynamicLoader/MacOSX-DYLD/Makefile @@ -1,14 +1,14 @@ ##===- source/Plugins/Disassembler/llvm/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 := lldbPluginDynamicLoaderMacOSX +LIBRARYNAME := lldbPluginDynamicLoaderMacOSXDYLD BUILD_ARCHIVE = 1 include $(LLDB_LEVEL)/Makefile Index: source/Plugins/DynamicLoader/POSIX-DYLD/Makefile =================================================================== --- source/Plugins/DynamicLoader/POSIX-DYLD/Makefile +++ source/Plugins/DynamicLoader/POSIX-DYLD/Makefile @@ -1,14 +1,14 @@ ##===- source/Plugins/DynamicLoader/POSIX-DYLD/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 := lldbPluginDynamicLoaderPOSIX +LIBRARYNAME := lldbPluginDynamicLoaderPosixDYLD BUILD_ARCHIVE = 1 include $(LLDB_LEVEL)/Makefile Index: source/Plugins/Instruction/ARM/Makefile =================================================================== --- source/Plugins/Instruction/ARM/Makefile +++ source/Plugins/Instruction/ARM/Makefile @@ -1,14 +1,14 @@ ##===- source/Plugins/Instruction/ARM/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 := lldbPluginEmulateInstructionARM +LIBRARYNAME := lldbPluginInstructionARM BUILD_ARCHIVE = 1 include $(LLDB_LEVEL)/Makefile Index: source/Plugins/Instruction/ARM64/Makefile =================================================================== --- source/Plugins/Instruction/ARM64/Makefile +++ source/Plugins/Instruction/ARM64/Makefile @@ -1,14 +1,14 @@ ##===- source/Plugins/Instruction/ARM/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 := lldbPluginEmulateInstructionARM64 +LIBRARYNAME := lldbPluginInstructionARM64 BUILD_ARCHIVE = 1 include $(LLDB_LEVEL)/Makefile Index: source/Plugins/Instruction/MIPS/Makefile =================================================================== --- source/Plugins/Instruction/MIPS/Makefile +++ source/Plugins/Instruction/MIPS/Makefile @@ -1,14 +1,14 @@ ##===- source/Plugins/Instruction/MIPS/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 := lldbPluginEmulateInstructionMIPS +LIBRARYNAME := lldbPluginInstructionMIPS BUILD_ARCHIVE = 1 include $(LLDB_LEVEL)/Makefile Index: source/Plugins/Instruction/MIPS64/Makefile =================================================================== --- source/Plugins/Instruction/MIPS64/Makefile +++ source/Plugins/Instruction/MIPS64/Makefile @@ -1,14 +1,14 @@ ##===- source/Plugins/Instruction/MIPS64/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 := lldbPluginEmulateInstructionMIPS64 +LIBRARYNAME := lldbPluginInstructionMIPS64 BUILD_ARCHIVE = 1 include $(LLDB_LEVEL)/Makefile Index: source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/Makefile =================================================================== --- source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/Makefile +++ source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/Makefile @@ -1,14 +1,14 @@ ##===- source/Plugins/LangRuntime/C++/ItaniumABI/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 := lldbPluginLanguageRuntimeCPlusPlusItaniumABI +LIBRARYNAME := lldbPluginCXXItaniumABI BUILD_ARCHIVE = 1 include $(LLDB_LEVEL)/Makefile Index: source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/Makefile =================================================================== --- source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/Makefile +++ source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/Makefile @@ -1,14 +1,14 @@ ##===- source/Plugins/LangRuntime/ObjC/AppleRT/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 := lldbPluginLanguageRuntimeObjCAppleObjCRuntime +LIBRARYNAME := lldbPluginAppleObjCRuntime BUILD_ARCHIVE = 1 include $(LLDB_LEVEL)/Makefile Index: source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/Makefile =================================================================== --- source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/Makefile +++ source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/Makefile @@ -1,14 +1,14 @@ ##===- Source/Plugins/LangRuntime/RenderScript/RenderScriptRuntime/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 := lldbPluginLanguageRuntimeRenderScriptRuntime +LIBRARYNAME := lldbPluginRenderScriptRuntime BUILD_ARCHIVE = 1 include $(LLDB_LEVEL)/Makefile Index: source/Plugins/ObjectContainer/Universal-Mach-O/Makefile =================================================================== --- source/Plugins/ObjectContainer/Universal-Mach-O/Makefile +++ source/Plugins/ObjectContainer/Universal-Mach-O/Makefile @@ -1,14 +1,14 @@ ##===- source/Plugins/ObjectContainer/Universal-Mach-O/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 := lldbPluginObjectContainerUniversalMachO +LIBRARYNAME := lldbPluginObjectContainerMachOArchive BUILD_ARCHIVE = 1 include $(LLDB_LEVEL)/Makefile Index: source/Plugins/OperatingSystem/Python/Makefile =================================================================== --- source/Plugins/OperatingSystem/Python/Makefile +++ source/Plugins/OperatingSystem/Python/Makefile @@ -1,14 +1,14 @@ ##==- source/Plugins/OperatingSystem/Python/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 := lldbPluginOperatingSystemPython +LIBRARYNAME := lldbPluginOSPython BUILD_ARCHIVE = 1 include $(LLDB_LEVEL)/Makefile Index: source/Plugins/Platform/gdb-server/Makefile =================================================================== --- source/Plugins/Platform/gdb-server/Makefile +++ source/Plugins/Platform/gdb-server/Makefile @@ -8,7 +8,7 @@ ##===----------------------------------------------------------------------===## LLDB_LEVEL := ../../../.. -LIBRARYNAME := lldbPluginPlatformGDBServer +LIBRARYNAME := lldbPluginPlatformGDB BUILD_ARCHIVE = 1 include $(LLDB_LEVEL)/Makefile Index: source/Plugins/UnwindAssembly/x86/Makefile =================================================================== --- source/Plugins/UnwindAssembly/x86/Makefile +++ source/Plugins/UnwindAssembly/x86/Makefile @@ -1,14 +1,14 @@ ##==-- source/Plugins/UnwindAssembly/x86/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 := lldbPluginUnwindAssemblyx86 +LIBRARYNAME := lldbPluginUnwindAssemblyX86 BUILD_ARCHIVE = 1 include $(LLDB_LEVEL)/Makefile