summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-03-19 01:12:21 +0000
committerGreg Clayton <gclayton@apple.com>2011-03-19 01:12:21 +0000
commitded470d31aa3a3b1c6b06fc8ae191d210ae089d5 (patch)
tree57af3b30c78261da0625d9ed4def8ccb212dc078 /lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h
parent5366ff18659c58ac54ab55db5c6f3cf5d0e01034 (diff)
downloadbcm5719-llvm-ded470d31aa3a3b1c6b06fc8ae191d210ae089d5.tar.gz
bcm5719-llvm-ded470d31aa3a3b1c6b06fc8ae191d210ae089d5.zip
Added more platform support. There are now some new commands:
platform status -- gets status information for the selected platform platform create <platform-name> -- creates a new instance of a remote platform platform list -- list all available platforms platform select -- select a platform instance as the current platform (not working yet) When using "platform create" it will create a remote platform and make it the selected platform. For instances for iPhone OS debugging on Mac OS X one can do: (lldb) platform create remote-ios --sdk-version=4.0 Remote platform: iOS platform SDK version: 4.0 SDK path: "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.0" Not connected to a remote device. (lldb) file ~/Documents/a.out Current executable set to '~/Documents/a.out' (armv6). (lldb) image list [ 0] /Volumes/work/gclayton/Documents/devb/attach/a.out [ 1] /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.0/Symbols/usr/lib/dyld [ 2] /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.0/Symbols/usr/lib/libSystem.B.dylib Note that this is all happening prior to running _or_ connecting to a remote platform. Once connected to a remote platform the OS version might change which means we will need to update our dependecies. Also once we run, we will need to match up the actualy binaries with the actualy UUID's to files in the SDK, or download and cache them locally. This is just the start of the remote platforms, but this modification is the first iteration in getting the platforms really doing something. llvm-svn: 127934
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h')
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h b/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h
index 037cac28e74..4b0db1584a4 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h
@@ -45,7 +45,7 @@ namespace lldb_private {
virtual const char *
GetShortPluginName()
{
- return "platform.macosx";
+ return "local-macosx";
}
virtual uint32_t
@@ -63,6 +63,15 @@ namespace lldb_private {
const ArchSpec &arch,
lldb::ModuleSP &module_sp);
+ virtual const char *
+ GetDescription ()
+ {
+ return "The native host platform on MacOSX.";
+ }
+
+ virtual void
+ GetStatus (Stream &strm);
+
virtual Error
GetFile (const FileSpec &platform_file, FileSpec &local_file);
@@ -77,9 +86,10 @@ namespace lldb_private {
virtual bool
GetSupportedArchitectureAtIndex (uint32_t idx, ArchSpec &arch);
- protected:
-
-
+ virtual size_t
+ GetSoftwareBreakpointTrapOpcode (Target &target,
+ BreakpointSite *bp_site);
+
private:
DISALLOW_COPY_AND_ASSIGN (PlatformMacOSX);
OpenPOWER on IntegriCloud