@@ -121,7 +121,7 @@ class TargetProperties : public Properties {
121
121
122
122
FileSpecList GetExecutableSearchPaths ();
123
123
124
- void AppendExecutableSearchPaths (const FileSpec&);
124
+ void AppendExecutableSearchPaths (const FileSpec &);
125
125
126
126
FileSpecList GetDebugFileSearchPaths ();
127
127
@@ -495,7 +495,7 @@ class Target : public std::enable_shared_from_this<Target>,
495
495
496
496
static void SetDefaultArchitecture (const ArchSpec &arch);
497
497
498
- // / Find a binary on the system and return its Module,
498
+ // / Find a binary on the system and return its Module,
499
499
// / or return an existing Module that is already in the Target.
500
500
// /
501
501
// / Given a ModuleSpec, find a binary satisifying that specification,
@@ -507,27 +507,26 @@ class Target : public std::enable_shared_from_this<Target>,
507
507
// / e.g. UUID, architecture, file path.
508
508
// /
509
509
// / \param[in] notify
510
- // / If notify is true, and the Module is new to this Target,
511
- // / Target::ModulesDidLoad will be called.
512
- // / If notify is false, it is assumed that the caller is adding
513
- // / multiple Modules and will call ModulesDidLoad with the
510
+ // / If notify is true, and the Module is new to this Target,
511
+ // / Target::ModulesDidLoad will be called.
512
+ // / If notify is false, it is assumed that the caller is adding
513
+ // / multiple Modules and will call ModulesDidLoad with the
514
514
// / full list at the end.
515
515
// / ModulesDidLoad must be called when a Module/Modules have
516
516
// / been added to the target, one way or the other.
517
517
// /
518
518
// / \param[out] error_ptr
519
- // / Optional argument, pointing to a Status object to fill in
519
+ // / Optional argument, pointing to a Status object to fill in
520
520
// / with any results / messages while attempting to find/load
521
521
// / this binary. Many callers will be internal functions that
522
522
// / will handle / summarize the failures in a custom way and
523
523
// / don't use these messages.
524
524
// /
525
- // / \return
525
+ // / \return
526
526
// / An empty ModuleSP will be returned if no matching file
527
527
// / was found. If error_ptr was non-nullptr, an error message
528
528
// / will likely be provided.
529
- lldb::ModuleSP GetOrCreateModule (const ModuleSpec &module_spec,
530
- bool notify,
529
+ lldb::ModuleSP GetOrCreateModule (const ModuleSpec &module_spec, bool notify,
531
530
Status *error_ptr = nullptr );
532
531
533
532
// Settings accessors
@@ -644,14 +643,11 @@ class Target : public std::enable_shared_from_this<Target>,
644
643
Args *additional_args = nullptr ,
645
644
Status *additional_args_error = nullptr );
646
645
647
- lldb::BreakpointSP
648
- CreateScriptedBreakpoint (const llvm::StringRef class_name,
649
- const FileSpecList *containingModules,
650
- const FileSpecList *containingSourceFiles,
651
- bool internal,
652
- bool request_hardware,
653
- StructuredData::ObjectSP extra_args_sp,
654
- Status *creation_error = nullptr );
646
+ lldb::BreakpointSP CreateScriptedBreakpoint (
647
+ const llvm::StringRef class_name, const FileSpecList *containingModules,
648
+ const FileSpecList *containingSourceFiles, bool internal,
649
+ bool request_hardware, StructuredData::ObjectSP extra_args_sp,
650
+ Status *creation_error = nullptr );
655
651
656
652
// This is the same as the func_name breakpoint except that you can specify a
657
653
// vector of names. This is cheaper than a regular expression breakpoint in
@@ -690,43 +686,42 @@ class Target : public std::enable_shared_from_this<Target>,
690
686
}
691
687
692
688
WatchpointList &GetWatchpointList () { return m_watchpoint_list; }
693
-
689
+
694
690
// Manages breakpoint names:
695
691
void AddNameToBreakpoint (BreakpointID &id, const char *name, Status &error);
696
-
697
- void AddNameToBreakpoint (lldb::BreakpointSP &bp_sp, const char *name,
692
+
693
+ void AddNameToBreakpoint (lldb::BreakpointSP &bp_sp, const char *name,
698
694
Status &error);
699
-
700
- void RemoveNameFromBreakpoint (lldb::BreakpointSP &bp_sp,
701
- ConstString name);
702
-
703
- BreakpointName *FindBreakpointName (ConstString name, bool can_create,
695
+
696
+ void RemoveNameFromBreakpoint (lldb::BreakpointSP &bp_sp, ConstString name);
697
+
698
+ BreakpointName *FindBreakpointName (ConstString name, bool can_create,
704
699
Status &error);
705
-
700
+
706
701
void DeleteBreakpointName (ConstString name);
707
-
702
+
708
703
void ConfigureBreakpointName (BreakpointName &bp_name,
709
704
const BreakpointOptions &options,
710
705
const BreakpointName::Permissions &permissions);
711
- void ApplyNameToBreakpoints (BreakpointName &bp_name);
712
-
706
+ void ApplyNameToBreakpoints (BreakpointName &bp_name);
707
+
713
708
// This takes ownership of the name obj passed in.
714
709
void AddBreakpointName (BreakpointName *bp_name);
715
-
710
+
716
711
void GetBreakpointNames (std::vector<std::string> &names);
717
-
718
- // This call removes ALL breakpoints regardless of permission.
712
+
713
+ // This call removes ALL breakpoints regardless of permission.
719
714
void RemoveAllBreakpoints (bool internal_also = false );
720
-
715
+
721
716
// This removes all the breakpoints, but obeys the ePermDelete on them.
722
717
void RemoveAllowedBreakpoints ();
723
718
724
719
void DisableAllBreakpoints (bool internal_also = false );
725
-
720
+
726
721
void DisableAllowedBreakpoints ();
727
722
728
723
void EnableAllBreakpoints (bool internal_also = false );
729
-
724
+
730
725
void EnableAllowedBreakpoints ();
731
726
732
727
bool DisableBreakpointByID (lldb::break_id_t break_id);
@@ -1038,11 +1033,12 @@ class Target : public std::enable_shared_from_this<Target>,
1038
1033
// parameters have the same meaning as for the UserExpression constructor.
1039
1034
// Returns a new-ed object which the caller owns.
1040
1035
1041
- UserExpression *GetUserExpressionForLanguage (
1042
- llvm::StringRef expr, llvm::StringRef prefix, lldb::LanguageType language,
1043
- Expression::ResultType desired_type,
1044
- const EvaluateExpressionOptions &options,
1045
- ValueObject *ctx_obj, Status &error);
1036
+ UserExpression *
1037
+ GetUserExpressionForLanguage (llvm::StringRef expr, llvm::StringRef prefix,
1038
+ lldb::LanguageType language,
1039
+ Expression::ResultType desired_type,
1040
+ const EvaluateExpressionOptions &options,
1041
+ ValueObject *ctx_obj, Status &error);
1046
1042
1047
1043
// Creates a FunctionCaller for the given language, the rest of the
1048
1044
// parameters have the same meaning as for the FunctionCaller constructor.
@@ -1104,8 +1100,7 @@ class Target : public std::enable_shared_from_this<Target>,
1104
1100
llvm::StringRef expression, ExecutionContextScope *exe_scope,
1105
1101
lldb::ValueObjectSP &result_valobj_sp,
1106
1102
const EvaluateExpressionOptions &options = EvaluateExpressionOptions(),
1107
- std::string *fixed_expression = nullptr,
1108
- ValueObject *ctx_obj = nullptr);
1103
+ std::string *fixed_expression = nullptr, ValueObject *ctx_obj = nullptr);
1109
1104
1110
1105
lldb::ExpressionVariableSP GetPersistentVariable (ConstString name);
1111
1106
@@ -1165,7 +1160,9 @@ class Target : public std::enable_shared_from_this<Target>,
1165
1160
1166
1161
void SetIsActive (bool is_active) { m_active = is_active; }
1167
1162
1168
- void SetAutoContinue (bool auto_continue) {m_auto_continue = auto_continue;}
1163
+ void SetAutoContinue (bool auto_continue) {
1164
+ m_auto_continue = auto_continue;
1165
+ }
1169
1166
1170
1167
bool GetAutoContinue () const { return m_auto_continue; }
1171
1168
@@ -1260,7 +1257,7 @@ class Target : public std::enable_shared_from_this<Target>,
1260
1257
const lldb::ModuleSP &module_sp) override ;
1261
1258
1262
1259
void NotifyModuleRemoved (const ModuleList &module_list,
1263
- const lldb::ModuleSP &module_sp) override ;
1260
+ const lldb::ModuleSP &module_sp) override ;
1264
1261
1265
1262
void NotifyModuleUpdated (const ModuleList &module_list,
1266
1263
const lldb::ModuleSP &old_module_sp,
@@ -1295,7 +1292,7 @@ class Target : public std::enable_shared_from_this<Target>,
1295
1292
BreakpointList m_internal_breakpoint_list;
1296
1293
using BreakpointNameList = std::map<ConstString, BreakpointName *>;
1297
1294
BreakpointNameList m_breakpoint_names;
1298
-
1295
+
1299
1296
lldb::BreakpointSP m_last_created_breakpoint;
1300
1297
WatchpointList m_watchpoint_list;
1301
1298
lldb::WatchpointSP m_last_created_watchpoint;
0 commit comments