[Vm-dev] [commit][3273] Provide incomplete support for building the GdbARMPlugin on Mac OS X.

commits at squeakvm.org commits at squeakvm.org
Tue Mar 17 02:39:15 UTC 2015


Revision: 3273
Author:   eliot
Date:     2015-03-16 19:39:14 -0700 (Mon, 16 Mar 2015)
Log Message:
-----------
Provide incomplete support for building the GdbARMPlugin on Mac OS X.  We still
have to deal with the wrapping of ARMul_OSHandleSWI that is implemented using a
gcc mechanism on linux.
Make the building of BochsIA32Plugin and GdbARMPlugin contingent on available
support files (at least in squeak.cog.spur & squeak/cog.v3).

Modified Paths:
--------------
    branches/Cog/build.macos32x86/squeak.cog.spur/makevm
    branches/Cog/build.macos32x86/squeak.cog.v3/makevm
    branches/Cog/platforms/unix/plugins/GdbARMPlugin/Makefile.inc

Added Paths:
-----------
    branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/
    branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/GdbARMPlugin.xcodeproj/
    branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/GdbARMPlugin.xcodeproj/project.pbxproj
    branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/Info.plist
    branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/build/
    branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/makeit
    branches/Cog/platforms/Mac OS/plugins/GdbARMPlugin/
    branches/Cog/platforms/Mac OS/plugins/GdbARMPlugin/environ.c
    branches/Cog/processors/ARM/README
    branches/Cog/processors/ARM/mac/
    branches/Cog/processors/ARM/mac/BUILD.sh
    branches/Cog/processors/ARM/mac/BUILDarmsim.sh
    branches/Cog/processors/ARM/mac/BUILDbinutils.sh
    branches/Cog/processors/ARM/mac/README

Property Changed:
----------------
    branches/Cog/platforms/Cross/vm/sqSCCSVersion.h

Added: branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/GdbARMPlugin.xcodeproj/project.pbxproj
===================================================================
--- branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/GdbARMPlugin.xcodeproj/project.pbxproj	                        (rev 0)
+++ branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/GdbARMPlugin.xcodeproj/project.pbxproj	2015-03-17 02:39:14 UTC (rev 3273)
@@ -0,0 +1,304 @@
+// !$*UTF8*$!
+{
+	archiveVersion = 1;
+	classes = {
+	};
+	objectVersion = 42;
+	objects = {
+
+/* Begin PBXBuildFile section */
+		73020E8D0EE714E60021D217 /* GdbARMPlugin.c in Sources */ = {isa = PBXBuildFile; fileRef = 73020E8C0EE714E60021D217 /* GdbARMPlugin.c */; settings = {COMPILER_FLAGS = "-I../../../platforms/Cross/vm -I../../../platforms/Cross/plugins/GdbARMPlugin -I\"../../../platforms/Mac OS/vm\" -I../../../spursrc/vm"; }; };
+		732787F61AB7A40100BE5008 /* libiberty.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 732787F51AB7A40100BE5008 /* libiberty.a */; };
+		732788161AB7BDAC00BE5008 /* libbfd.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 73ADAA901AB79ED50085DAA8 /* libbfd.a */; };
+		732788241AB7C73500BE5008 /* environ.c in Sources */ = {isa = PBXBuildFile; fileRef = 732787F11AB7A12A00BE5008 /* environ.c */; };
+		737482B30EE7339F004E10F8 /* libopcodes.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 737482B20EE7339F004E10F8 /* libopcodes.a */; };
+		737482B50EE733BD004E10F8 /* libsim.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 737482B40EE733BD004E10F8 /* libsim.a */; };
+		737482B70EE7343B004E10F8 /* sqGdbARMPlugin.c in Sources */ = {isa = PBXBuildFile; fileRef = 737482B60EE7343B004E10F8 /* sqGdbARMPlugin.c */; settings = {COMPILER_FLAGS = "-I../../../processors/ARM/mac/gdb-7.6/include -I../../../processors/ARM/mac/gdb-7.6/sim/arm -I../../../processors/ARM/mac/gdb-7.6/bfd"; }; };
+		73F560891AB76408009B44A3 /* armulmem.c in Sources */ = {isa = PBXBuildFile; fileRef = 73F560881AB76408009B44A3 /* armulmem.c */; settings = {COMPILER_FLAGS = "-I../../../processors/ARM/mac/gdb-7.6/include -I../../../processors/ARM/mac/gdb-7.6/sim/arm -I../../../processors/ARM/mac/gdb-7.6/bfd"; }; };
+		8D01CCCE0486CAD60068D4B7 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08EA7FFBFE8413EDC02AAC07 /* Carbon.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+		08EA7FFBFE8413EDC02AAC07 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = "<absolute>"; };
+		73020E8C0EE714E60021D217 /* GdbARMPlugin.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = GdbARMPlugin.c; path = ../../../src/plugins/GdbARMPlugin/GdbARMPlugin.c; sourceTree = SOURCE_ROOT; };
+		73020E8E0EE7158C0021D217 /* GdbARMPlugin.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = GdbARMPlugin.h; path = ../../../platforms/Cross/plugins/GdbARMPlugin/GdbARMPlugin.h; sourceTree = SOURCE_ROOT; };
+		732787F11AB7A12A00BE5008 /* environ.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = environ.c; path = "../../../platforms/Mac OS/plugins/GdbARMPlugin/environ.c"; sourceTree = SOURCE_ROOT; };
+		732787F51AB7A40100BE5008 /* libiberty.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libiberty.a; path = "../../../processors/ARM/mac/binutils-2.25/libiberty/libiberty.a"; sourceTree = SOURCE_ROOT; };
+		737482B20EE7339F004E10F8 /* libopcodes.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libopcodes.a; path = "../../../processors/ARM/mac/gdb-7.6/opcodes/libopcodes.a"; sourceTree = SOURCE_ROOT; };
+		737482B40EE733BD004E10F8 /* libsim.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libsim.a; path = "../../../processors/ARM/mac/gdb-7.6/sim/arm/libsim.a"; sourceTree = SOURCE_ROOT; };
+		737482B60EE7343B004E10F8 /* sqGdbARMPlugin.c */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.c; fileEncoding = 30; name = sqGdbARMPlugin.c; path = ../../../platforms/Cross/plugins/GdbARMPlugin/sqGdbARMPlugin.c; sourceTree = SOURCE_ROOT; };
+		73ADAA901AB79ED50085DAA8 /* libbfd.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libbfd.a; path = "../../../processors/ARM/mac/binutils-2.25/bfd/libbfd.a"; sourceTree = SOURCE_ROOT; };
+		73F560881AB76408009B44A3 /* armulmem.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = armulmem.c; path = ../../../platforms/Cross/plugins/GdbARMPlugin/armulmem.c; sourceTree = SOURCE_ROOT; };
+		8D01CCD10486CAD60068D4B7 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
+		8D01CCD20486CAD60068D4B7 /* GdbARMPlugin.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GdbARMPlugin.bundle; sourceTree = BUILT_PRODUCTS_DIR; };
+		DA3A20F50AA63CBF0050B983 /* interp.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = interp.h; path = ../../../spursrc/vm/interp.h; sourceTree = SOURCE_ROOT; };
+		DA3A20F60AA63CDC0050B983 /* sqMemoryAccess.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = sqMemoryAccess.h; path = ../../../platforms/Cross/vm/sqMemoryAccess.h; sourceTree = SOURCE_ROOT; };
+		DA3A20F70AA63CDC0050B983 /* sqVirtualMachine.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = sqVirtualMachine.h; path = ../../../platforms/Cross/vm/sqVirtualMachine.h; sourceTree = SOURCE_ROOT; };
+		DA3A20F80AA63D000050B983 /* config.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = config.h; path = "../../../platforms/Mac OS/vm/config.h"; sourceTree = SOURCE_ROOT; };
+		DA3A20F90AA63D000050B983 /* sqConfig.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = sqConfig.h; path = "../../../platforms/Mac OS/vm/sqConfig.h"; sourceTree = SOURCE_ROOT; };
+		DA3A20FA0AA63D000050B983 /* sqPlatformSpecific.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = sqPlatformSpecific.h; path = "../../../platforms/Mac OS/vm/sqPlatformSpecific.h"; sourceTree = SOURCE_ROOT; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+		8D01CCCD0486CAD60068D4B7 /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				8D01CCCE0486CAD60068D4B7 /* Carbon.framework in Frameworks */,
+				737482B30EE7339F004E10F8 /* libopcodes.a in Frameworks */,
+				737482B50EE733BD004E10F8 /* libsim.a in Frameworks */,
+				732787F61AB7A40100BE5008 /* libiberty.a in Frameworks */,
+				732788161AB7BDAC00BE5008 /* libbfd.a in Frameworks */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+		089C166AFE841209C02AAC07 /* GdbARMPlugin */ = {
+			isa = PBXGroup;
+			children = (
+				737482B20EE7339F004E10F8 /* libopcodes.a */,
+				73ADAA901AB79ED50085DAA8 /* libbfd.a */,
+				737482B40EE733BD004E10F8 /* libsim.a */,
+				08FB77ADFE841716C02AAC07 /* Source */,
+				089C167CFE841241C02AAC07 /* Resources */,
+				089C1671FE841209C02AAC07 /* External Frameworks and Libraries */,
+				19C28FB4FE9D528D11CA2CBB /* Products */,
+			);
+			name = GdbARMPlugin;
+			sourceTree = "<group>";
+		};
+		089C1671FE841209C02AAC07 /* External Frameworks and Libraries */ = {
+			isa = PBXGroup;
+			children = (
+				08EA7FFBFE8413EDC02AAC07 /* Carbon.framework */,
+			);
+			name = "External Frameworks and Libraries";
+			sourceTree = "<group>";
+		};
+		089C167CFE841241C02AAC07 /* Resources */ = {
+			isa = PBXGroup;
+			children = (
+				8D01CCD10486CAD60068D4B7 /* Info.plist */,
+			);
+			name = Resources;
+			sourceTree = "<group>";
+		};
+		08FB77ADFE841716C02AAC07 /* Source */ = {
+			isa = PBXGroup;
+			children = (
+				737482B60EE7343B004E10F8 /* sqGdbARMPlugin.c */,
+				73F560881AB76408009B44A3 /* armulmem.c */,
+				732787F51AB7A40100BE5008 /* libiberty.a */,
+				732787F11AB7A12A00BE5008 /* environ.c */,
+				73020E8E0EE7158C0021D217 /* GdbARMPlugin.h */,
+				73020E8C0EE714E60021D217 /* GdbARMPlugin.c */,
+				DA3A20F80AA63D000050B983 /* config.h */,
+				DA3A20F90AA63D000050B983 /* sqConfig.h */,
+				DA3A20FA0AA63D000050B983 /* sqPlatformSpecific.h */,
+				DA3A20F60AA63CDC0050B983 /* sqMemoryAccess.h */,
+				DA3A20F70AA63CDC0050B983 /* sqVirtualMachine.h */,
+				DA3A20F50AA63CBF0050B983 /* interp.h */,
+			);
+			name = Source;
+			sourceTree = "<group>";
+		};
+		19C28FB4FE9D528D11CA2CBB /* Products */ = {
+			isa = PBXGroup;
+			children = (
+				8D01CCD20486CAD60068D4B7 /* GdbARMPlugin.bundle */,
+			);
+			name = Products;
+			sourceTree = "<group>";
+		};
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+		8D01CCC60486CAD60068D4B7 /* GdbARMPlugin */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = 4FADC23308B4156C00ABE55E /* Build configuration list for PBXNativeTarget "GdbARMPlugin" */;
+			buildPhases = (
+				8D01CCC90486CAD60068D4B7 /* Resources */,
+				8D01CCCB0486CAD60068D4B7 /* Sources */,
+				8D01CCCD0486CAD60068D4B7 /* Frameworks */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+			);
+			name = GdbARMPlugin;
+			productInstallPath = "$(HOME)/Library/Bundles";
+			productName = GdbARMPlugin;
+			productReference = 8D01CCD20486CAD60068D4B7 /* GdbARMPlugin.bundle */;
+			productType = "com.apple.product-type.bundle";
+		};
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+		089C1669FE841209C02AAC07 /* Project object */ = {
+			isa = PBXProject;
+			buildConfigurationList = 4FADC23708B4156C00ABE55E /* Build configuration list for PBXProject "GdbARMPlugin" */;
+			compatibilityVersion = "Xcode 2.4";
+			developmentRegion = English;
+			hasScannedForEncodings = 1;
+			knownRegions = (
+				English,
+				Japanese,
+				French,
+				German,
+			);
+			mainGroup = 089C166AFE841209C02AAC07 /* GdbARMPlugin */;
+			projectDirPath = "";
+			projectRoot = "";
+			targets = (
+				8D01CCC60486CAD60068D4B7 /* GdbARMPlugin */,
+			);
+		};
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+		8D01CCC90486CAD60068D4B7 /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+		8D01CCCB0486CAD60068D4B7 /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				73020E8D0EE714E60021D217 /* GdbARMPlugin.c in Sources */,
+				737482B70EE7343B004E10F8 /* sqGdbARMPlugin.c in Sources */,
+				73F560891AB76408009B44A3 /* armulmem.c in Sources */,
+				732788241AB7C73500BE5008 /* environ.c in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXSourcesBuildPhase section */
+
+/* Begin XCBuildConfiguration section */
+		4FADC23408B4156C00ABE55E /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				COPY_PHASE_STRIP = NO;
+				GCC_DYNAMIC_NO_PIC = NO;
+				GCC_ENABLE_FIX_AND_CONTINUE = NO;
+				GCC_OPTIMIZATION_LEVEL = 0;
+				GCC_PRECOMPILE_PREFIX_HEADER = NO;
+				INFOPLIST_FILE = Info.plist;
+				INSTALL_PATH = "$(HOME)/Library/Bundles";
+				LIBRARY_SEARCH_PATHS = (
+					"$(inherited)",
+					"$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
+					"$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)",
+					"$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)",
+					"$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4)",
+					"$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5)",
+				);
+				LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../processors/ARM/mac/gdb-7.6/opcodes\"";
+				LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)/../../../processors/ARM/mac/gdb-7.6/sim/arm\"";
+				LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3 = "\"$(SRCROOT)/../../../processors/ARM/mac/binutils-2.25/bfd\"";
+				LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4 = "\"$(SRCROOT)/../../../processors/ARM/mac/binutils-2.25/libiberty\"";
+				LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5 = "\"$(SRCROOT)/../../../processors/ARM/mac/binutils-2.25/bfd\"";
+				PRODUCT_NAME = GdbARMPlugin;
+				WRAPPER_EXTENSION = bundle;
+				ZERO_LINK = YES;
+			};
+			name = Debug;
+		};
+		4FADC23508B4156C00ABE55E /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ARCHS = i386;
+				GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
+				GCC_PRECOMPILE_PREFIX_HEADER = NO;
+				INFOPLIST_FILE = Info.plist;
+				INSTALL_PATH = "$(HOME)/Library/Bundles";
+				LIBRARY_SEARCH_PATHS = (
+					"$(inherited)",
+					"$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
+					"$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)",
+					"$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)",
+					"$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4)",
+					"$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5)",
+				);
+				LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/../../../processors/ARM/mac/gdb-7.6/opcodes\"";
+				LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)/../../../processors/ARM/mac/gdb-7.6/sim/arm\"";
+				LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3 = "\"$(SRCROOT)/../../../processors/ARM/mac/binutils-2.25/bfd\"";
+				LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4 = "\"$(SRCROOT)/../../../processors/ARM/mac/binutils-2.25/libiberty\"";
+				LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5 = "\"$(SRCROOT)/../../../processors/ARM/mac/binutils-2.25/bfd\"";
+				PRODUCT_NAME = GdbARMPlugin;
+				WRAPPER_EXTENSION = bundle;
+			};
+			name = Release;
+		};
+		4FADC23808B4156C00ABE55E /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)";
+				CONFIGURATION_TEMP_DIR = "$(PROJECT_TEMP_DIR)/$(CONFIGURATION)";
+				COPY_PHASE_STRIP = NO;
+				GCC_MODEL_TUNING = "";
+				GCC_OPTIMIZATION_LEVEL = 0;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				HEADER_SEARCH_PATHS = /Developer/Headers/FlatCarbon;
+				PREBINDING = NO;
+				PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = NO;
+				SDKROOT = /Developer/SDKs/MacOSX10.6.sdk;
+				STRIP_INSTALLED_PRODUCT = NO;
+				USER_HEADER_SEARCH_PATHS = "";
+				USE_HEADERMAP = NO;
+			};
+			name = Debug;
+		};
+		4FADC23908B4156C00ABE55E /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = YES;
+				CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)";
+				CONFIGURATION_TEMP_DIR = "$(PROJECT_TEMP_DIR)/$(CONFIGURATION)";
+				COPY_PHASE_STRIP = NO;
+				GCC_MODEL_TUNING = "";
+				GCC_WARN_ABOUT_RETURN_TYPE = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				HEADER_SEARCH_PATHS = /Developer/Headers/FlatCarbon;
+				PREBINDING = NO;
+				PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = NO;
+				SDKROOT = /Developer/SDKs/MacOSX10.6.sdk;
+				USER_HEADER_SEARCH_PATHS = "";
+				USE_HEADERMAP = NO;
+			};
+			name = Release;
+		};
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+		4FADC23308B4156C00ABE55E /* Build configuration list for PBXNativeTarget "GdbARMPlugin" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				4FADC23408B4156C00ABE55E /* Debug */,
+				4FADC23508B4156C00ABE55E /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		4FADC23708B4156C00ABE55E /* Build configuration list for PBXProject "GdbARMPlugin" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				4FADC23808B4156C00ABE55E /* Debug */,
+				4FADC23908B4156C00ABE55E /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+/* End XCConfigurationList section */
+	};
+	rootObject = 089C1669FE841209C02AAC07 /* Project object */;
+}

Added: branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/Info.plist
===================================================================
--- branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/Info.plist	                        (rev 0)
+++ branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/Info.plist	2015-03-17 02:39:14 UTC (rev 3273)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDevelopmentRegion</key>
+	<string>English</string>
+	<key>CFBundleExecutable</key>
+	<string>GdbARMPlugin</string>
+	<key>CFBundleIconFile</key>
+	<string>SqueakPlugin.icns</string>
+	<key>CFBundleIdentifier</key>
+	<string>org.squeak.GdbARMPlugin</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundlePackageType</key>
+	<string>BNDL</string>
+	<key>CFBundleSignature</key>
+	<string>FAST</string>
+	<key>CFBundleVersion</key>
+	<string>1.0</string>
+	<key>CFBundleShortVersionString</key>
+	<string>1.0</string>
+	<key>CSResourcesFileMapped</key>
+	<true/>
+</dict>
+</plist>

Added: branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/makeit
===================================================================
--- branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/makeit	                        (rev 0)
+++ branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/makeit	2015-03-17 02:39:14 UTC (rev 3273)
@@ -0,0 +1,19 @@
+clear
+xcodebuild -configuration Debug -project GdbARMPlugin.xcodeproj
+xcodebuild -configuration Release -project GdbARMPlugin.xcodeproj
+for d in Assert.app Debug.app
+do
+	if [ -d "../$d" ]; then
+		echo installed Debug GdbARMPlugin in ../$d
+		rm -rf "../$d/Contents/Resources/GdbARMPlugin.bundle"
+		cp -R build/Debug/GdbARMPlugin.bundle "../$d/Contents/Resources"
+	fi
+done
+for d in Fast.app Croquet.app
+do
+	if [ -d "../$d" ]; then
+		echo installed Release GdbARMPlugin in ../$d
+		rm -rf "../$d/Contents/Resources/GdbARMPlugin.bundle"
+		cp -R build/Release/GdbARMPlugin.bundle "../$d/Contents/Resources"
+	fi
+done


Property changes on: branches/Cog/build.macos32x86/squeak.cog.spur/GdbARMPlugin/makeit
___________________________________________________________________
Added: svn:executable
   + *

Modified: branches/Cog/build.macos32x86/squeak.cog.spur/makevm
===================================================================
--- branches/Cog/build.macos32x86/squeak.cog.spur/makevm	2015-03-12 19:40:56 UTC (rev 3272)
+++ branches/Cog/build.macos32x86/squeak.cog.spur/makevm	2015-03-17 02:39:14 UTC (rev 3273)
@@ -116,11 +116,27 @@
 # Build the BochsIA32Plugin
 # N.B. To build the plugin you also have to build the Bochs libraries in
 # ../../processors/IA32/bochs.  cd ../../processors/IA32/bochs. Run conf.COG & makeem.
+if test -f ../../processors/IA32/macbochs/cpu/libcpu.a; then
 echo BochsIA32Plugin xcodebuild -configuration $XCD_BUILD_CONFIGURATION -project BochsIA32Plugin/BochsIA32Plugin.xcodeproj
 xcodebuild -configuration $XCD_BUILD_CONFIGURATION -project BochsIA32Plugin/BochsIA32Plugin.xcodeproj
 rm -rf "$DEST/Contents/Resources/BochsIA32Plugin.bundle"
 cp -R BochsIA32Plugin/build/$XCD_BUILD_CONFIGURATION/BochsIA32Plugin.bundle "$DEST/Contents/Resources"
+else
+echo "not building BochsIA32Plugin; support libraries unavailable"
+fi
 
+# Build the GdbARMPlugin
+# N.B. To build the plugin you also have to build the gdb ARM sim libraries in
+# ../../processors/ARM/mac.
+if test -f ../../processors/ARM/mac/gdb-7.6/opcodes/libopcodes.a; then
+echo GdbARMPlugin xcodebuild -configuration $XCD_BUILD_CONFIGURATION -project GdbARMPlugin/GdbARMPlugin.xcodeproj
+xcodebuild -configuration $XCD_BUILD_CONFIGURATION -project GdbARMPlugin/GdbARMPlugin.xcodeproj
+rm -rf "$DEST/Contents/Resources/GdbARMPlugin.bundle"
+cp -R GdbARMPlugin/build/$XCD_BUILD_CONFIGURATION/GdbARMPlugin.bundle "$DEST/Contents/Resources"
+else
+echo "not building GdbARMPlugin; support libraries unavailable"
+fi
+
 # Build the UnixOSProcessPlugin
 echo UnixOSProcessPlugin xcodebuild -configuration $XCD_BUILD_CONFIGURATION -project UnixOSProcessPlugin/UnixOSProcessPlugin.xcodeproj
 xcodebuild -configuration $XCD_BUILD_CONFIGURATION -project UnixOSProcessPlugin/UnixOSProcessPlugin.xcodeproj

Modified: branches/Cog/build.macos32x86/squeak.cog.v3/makevm
===================================================================
--- branches/Cog/build.macos32x86/squeak.cog.v3/makevm	2015-03-12 19:40:56 UTC (rev 3272)
+++ branches/Cog/build.macos32x86/squeak.cog.v3/makevm	2015-03-17 02:39:14 UTC (rev 3273)
@@ -116,10 +116,14 @@
 # Build the BochsIA32Plugin
 # N.B. To build the plugin you also have to build the Bochs libraries in
 # ../../processors/IA32/bochs.  cd ../../processors/IA32/bochs. Run conf.COG & makeem.
+if test -f ../../processors/IA32/macbochs/cpu/libcpu.a; then
 echo BochsIA32Plugin xcodebuild -configuration $XCD_BUILD_CONFIGURATION -project BochsIA32Plugin/BochsIA32Plugin.xcodeproj
 xcodebuild -configuration $XCD_BUILD_CONFIGURATION -project BochsIA32Plugin/BochsIA32Plugin.xcodeproj
 rm -rf "$DEST/Contents/Resources/BochsIA32Plugin.bundle"
 cp -R BochsIA32Plugin/build/$XCD_BUILD_CONFIGURATION/BochsIA32Plugin.bundle "$DEST/Contents/Resources"
+else
+echo "not building BochsIA32Plugin; support libraries unavailable"
+fi
 
 # Build the UnixOSProcessPlugin
 echo UnixOSProcessPlugin xcodebuild -configuration $XCD_BUILD_CONFIGURATION -project UnixOSProcessPlugin/UnixOSProcessPlugin.xcodeproj


Property changes on: branches/Cog/platforms/Cross/vm/sqSCCSVersion.h
___________________________________________________________________
Modified: checkindate
   - Thu Mar 12 12:13:00 PDT 2015
   + Thu Mar 12 12:40:30 PDT 2015

Added: branches/Cog/platforms/Mac OS/plugins/GdbARMPlugin/environ.c
===================================================================
--- branches/Cog/platforms/Mac OS/plugins/GdbARMPlugin/environ.c	                        (rev 0)
+++ branches/Cog/platforms/Mac OS/plugins/GdbARMPlugin/environ.c	2015-03-17 02:39:14 UTC (rev 3273)
@@ -0,0 +1,5 @@
+/*
+ * Provide a fake environ so that xmalloc.o from libiberty.a links.
+ */
+
+char **environ = 0;

Modified: branches/Cog/platforms/unix/plugins/GdbARMPlugin/Makefile.inc
===================================================================
--- branches/Cog/platforms/unix/plugins/GdbARMPlugin/Makefile.inc	2015-03-12 19:40:56 UTC (rev 3272)
+++ branches/Cog/platforms/unix/plugins/GdbARMPlugin/Makefile.inc	2015-03-17 02:39:14 UTC (rev 3273)
@@ -4,7 +4,6 @@
 
 XINCLUDES	+= -I$(GDBBUILDFOLDER)/include
 XINCLUDES	+= -I$(GDBBUILDFOLDER)/sim/arm
-# XINCLUDES	:= -I$(GDBBUILDFOLDER)/bfd $(XINCLUDES)
 
 XLDFLAGS=	$(GDBBUILDFOLDER)/sim/arm/libsim.a \
 		$(GDBBUILDFOLDER)/opcodes/libopcodes.a \

Added: branches/Cog/processors/ARM/README
===================================================================
--- branches/Cog/processors/ARM/README	                        (rev 0)
+++ branches/Cog/processors/ARM/README	2015-03-17 02:39:14 UTC (rev 3273)
@@ -0,0 +1,27 @@
+To build the GdbARMPlugin on linux (currently only supported on linux) get
+gdb-7.6, e.g. from http://www.gnu.org/software/gdb/download/gdb-7.6.tar.gz
+Unpack it here so one obtains platforms/ARM/gdb-7.6
+
+Then make sure you have binutils and libiberty installed.  e.g.
+
+CentOS configuration for binutils and libiberty
+yum install buinutils-devel
+yum install compat-gcc-34
+
+Ubuntu configuration for binutils and libiberty
+sudo apt-get install binutils-dev libiberty-dev
+
+Then
+
+cd gdb-7.6/opcodes # i.e. processors/ARM/gdb-7.6/opcodes
+./configure --target=arm-linux
+make
+
+cd ../sim/common # i.e. processors/ARM/gdb-7.6/sim/common
+./configure --target=arm-linux
+cd ../arm # i.e. processors/ARM/gdb-7.6/sim/arm
+./configure --target=arm-linux
+make
+
+That should produce processors/ARM/gdb-7.6/sim/arm/libsim.a
+With that built you can configure and build VMs that will build the ARM plugin.

Added: branches/Cog/processors/ARM/mac/BUILD.sh
===================================================================
--- branches/Cog/processors/ARM/mac/BUILD.sh	                        (rev 0)
+++ branches/Cog/processors/ARM/mac/BUILD.sh	2015-03-17 02:39:14 UTC (rev 3273)
@@ -0,0 +1,10 @@
+#!/bin/bash
+# This script first builds
+#	binutils-2.25/bfd/bfd.h
+#	binutils-2.25/libiberty/libiberty.a
+# then builds
+#	gdb-7.6/opcodes/libopcodes.a
+#	gdb-7.6/sim/arm/libsim.a
+
+./BUILDbinutils.sh
+./BUILDarmsim.sh


Property changes on: branches/Cog/processors/ARM/mac/BUILD.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/Cog/processors/ARM/mac/BUILDarmsim.sh
===================================================================
--- branches/Cog/processors/ARM/mac/BUILDarmsim.sh	                        (rev 0)
+++ branches/Cog/processors/ARM/mac/BUILDarmsim.sh	2015-03-17 02:39:14 UTC (rev 3273)
@@ -0,0 +1,25 @@
+#!/bin/bash
+# This script builds
+#	gdb-7.6/opcodes/libopcodes.a
+#	gdb-7.6/sim/arm/libsim.a
+
+test -d gdb-7.6 || unzip ../ARM-gdb-7.6.zip
+
+#TARGET='--target=arm-linux'
+#BUILD='--build=i386-apple-darwin9'
+#CFLAGS='CFLAGS=\"-arch i386 -g -O2\"'
+#LDFLAGS='LDFLAGS=\"-arch i386\"'
+#./configure "$TARGET" "$BUILD" "$CFLAGS" "$LDFLAGS"
+
+ln -s ../../binutils-2.25/bfd/bfd.h gdb-7.6/bfd/bfd.h
+ln -s ../../binutils-2.25/bfd/config.h gdb-7.6/bfd/config.h
+libtool -V >gdb-7.6/bfd/libtool-soversion
+(cd gdb-7.6/opcodes # i.e. processors/ARM/gdb-7.6/opcodes
+./configure --target=arm-linux --build=i386-apple-darwin9 CFLAGS="-arch i386 -g -O2" LDFLAGS="-arch i386"
+make
+
+cd ../sim/common # i.e. processors/ARM/gdb-7.6/sim/common
+./configure --target=arm-linux --build=i386-apple-darwin9 CFLAGS="-arch i386 -g -O2" LDFLAGS="-arch i386"
+cd ../arm # i.e. processors/ARM/gdb-7.6/sim/arm
+./configure --target=arm-linux --build=i386-apple-darwin9 CFLAGS="-arch i386 -g -O2" LDFLAGS="-arch i386"
+make)


Property changes on: branches/Cog/processors/ARM/mac/BUILDarmsim.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/Cog/processors/ARM/mac/BUILDbinutils.sh
===================================================================
--- branches/Cog/processors/ARM/mac/BUILDbinutils.sh	                        (rev 0)
+++ branches/Cog/processors/ARM/mac/BUILDbinutils.sh	2015-03-17 02:39:14 UTC (rev 3273)
@@ -0,0 +1,18 @@
+#!/bin/bash
+# This script builds
+#	binutils-2.25/bfd/bfd.h
+#	binutils-2.25/libiberty/libiberty.a
+
+test -d binutils-2.25 || tar xzvf ../binutils-2.25.tar.gz
+(cd binutils-2.25;
+./configure --build=i386-apple-darwin9 CFLAGS="-arch i386 -g -O2" \
+	--disable-nls --without-zlib
+make configure-bfd
+cd ./bfd
+make
+cd ..
+make configure-libiberty
+cd ./libiberty
+make)
+ls -l binutils-2.25/libiberty/libiberty.a binutils-2.25/bfd/bfd.h
+test -f binutils-2.25/libiberty/libiberty.a && test -f binutils-2.25/bfd/bfd.h || echo "failed to build binutils" 1>&2


Property changes on: branches/Cog/processors/ARM/mac/BUILDbinutils.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/Cog/processors/ARM/mac/README
===================================================================
--- branches/Cog/processors/ARM/mac/README	                        (rev 0)
+++ branches/Cog/processors/ARM/mac/README	2015-03-17 02:39:14 UTC (rev 3273)
@@ -0,0 +1,7 @@
+Build the support libraries for the GdbARMPlugin in the 32-bit Mac OS build.
+
+Download binutils from http://ftp.gnu.org/gnu/binutils/binutils-2.25.tar.gz
+Unpack binutils-2.25.tar.gz to binutils-2.25
+Unpack ../ARM-gdb-7.6.zip to gdb-7.6
+
+./BUILD.sh



More information about the Vm-dev mailing list