Xcode.h revision af222500aa2ce2b18149277e561cdf75f2115df2
1//
2//  Xcode.h
3//  PerfTestDriver
4//
5//  Created by Enrico Granata on 3/6/13.
6//  Copyright (c) 2013 Apple Inc. All rights reserved.
7//
8
9#ifndef __PerfTestDriver__Xcode__
10#define __PerfTestDriver__Xcode__
11
12#include "lldb/API/SBDefines.h"
13#include "lldb/API/SBValue.h"
14#include "lldb/API/SBTarget.h"
15#include "lldb/API/SBModule.h"
16#include "lldb/API/SBProcess.h"
17#include "lldb/API/SBLineEntry.h"
18#include "lldb/API/SBThread.h"
19#include "lldb/API/SBDebugger.h"
20#include "lldb/API/SBCommandInterpreter.h"
21#include "lldb/API/SBCommandReturnObject.h"
22#include "lldb/API/SBBreakpoint.h"
23
24using namespace lldb;
25
26namespace lldb_perf
27{
28class Xcode
29{
30public:
31	static void
32	FetchVariable (SBValue value, uint32_t expand = 0, bool verbose = false);
33
34	static void
35	FetchModules (SBTarget target, bool verbose = false);
36
37	static void
38	FetchVariables (SBFrame frame, uint32_t expand = 0, bool verbose = false);
39
40	static void
41	FetchFrames (SBProcess process, bool variables = false, bool verbose = false);
42
43	static void
44	RunExpression (SBFrame frame, const char* expression, bool po = false, bool verbose = false);
45
46	static void
47	Next (SBThread thread);
48
49	static void
50	Continue (SBProcess process);
51
52	static void
53	RunCommand (SBDebugger debugger, const char* cmd, bool verbose = false);
54
55	static SBThread
56	GetThreadWithStopReason (SBProcess process, StopReason reason);
57
58    static SBBreakpoint
59    CreateFileLineBreakpoint (SBTarget target, const char* file, uint32_t line);
60};
61}
62
63#endif /* defined(__PerfTestDriver__Xcode__) */
64