LLDB  mainline
Target.h
Go to the documentation of this file.
1 //===-- Target.h ------------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_TARGET_TARGET_H
10 #define LLDB_TARGET_TARGET_H
11 
12 #include <list>
13 #include <map>
14 #include <memory>
15 #include <string>
16 #include <vector>
17 
21 #include "lldb/Core/Architecture.h"
22 #include "lldb/Core/Disassembler.h"
23 #include "lldb/Core/ModuleList.h"
28 #include "lldb/Symbol/TypeSystem.h"
32 #include "lldb/Target/Statistics.h"
33 #include "lldb/Target/ThreadSpec.h"
34 #include "lldb/Utility/ArchSpec.h"
37 #include "lldb/Utility/Timeout.h"
38 #include "lldb/lldb-public.h"
39 
40 namespace lldb_private {
41 
42 OptionEnumValues GetDynamicValueTypes();
43 
48 };
49 
54 };
55 
60 };
61 
66 };
67 
72 };
73 
79 };
80 
82 public:
84 };
85 
86 class TargetProperties : public Properties {
87 public:
88  TargetProperties(Target *target);
89 
90  ~TargetProperties() override;
91 
93 
94  void SetDefaultArchitecture(const ArchSpec &arch);
95 
96  bool GetMoveToNearestCode() const;
97 
99 
101 
102  bool GetPreloadSymbols() const;
103 
104  void SetPreloadSymbols(bool b);
105 
106  bool GetDisableASLR() const;
107 
108  void SetDisableASLR(bool b);
109 
110  bool GetInheritTCC() const;
111 
112  void SetInheritTCC(bool b);
113 
114  bool GetDetachOnError() const;
115 
116  void SetDetachOnError(bool b);
117 
118  bool GetDisableSTDIO() const;
119 
120  void SetDisableSTDIO(bool b);
121 
122  const char *GetDisassemblyFlavor() const;
123 
125 
126  llvm::StringRef GetArg0() const;
127 
128  void SetArg0(llvm::StringRef arg);
129 
130  bool GetRunArguments(Args &args) const;
131 
132  void SetRunArguments(const Args &args);
133 
134  // Get the whole environment including the platform inherited environment and
135  // the target specific environment, excluding the unset environment variables.
136  Environment GetEnvironment() const;
137  // Get the platform inherited environment, excluding the unset environment
138  // variables.
140  // Get the target specific environment only, without the platform inherited
141  // environment.
143  // Set the target specific environment.
144  void SetEnvironment(Environment env);
145 
146  bool GetSkipPrologue() const;
147 
149 
150  FileSpecList GetExecutableSearchPaths();
151 
153 
154  FileSpecList GetDebugFileSearchPaths();
155 
156  FileSpecList GetClangModuleSearchPaths();
157 
158  bool GetEnableAutoImportClangModules() const;
159 
161 
163 
164  bool GetEnableAutoApplyFixIts() const;
165 
166  uint64_t GetNumberOfRetriesWithFixits() const;
167 
168  bool GetEnableNotifyAboutFixIts() const;
169 
171 
172  bool GetEnableSyntheticValue() const;
173 
175 
177 
178  /// Get the max depth value, augmented with a bool to indicate whether the
179  /// depth is the default.
180  ///
181  /// When the user has customized the max depth, the bool will be false.
182  ///
183  /// \returns the max depth, and true if the max depth is the system default,
184  /// otherwise false.
185  std::pair<uint32_t, bool> GetMaximumDepthOfChildrenToDisplay() const;
186 
188 
190 
194 
195  void SetStandardInputPath(llvm::StringRef path);
196  void SetStandardOutputPath(llvm::StringRef path);
197  void SetStandardErrorPath(llvm::StringRef path);
198 
199  void SetStandardInputPath(const char *path) = delete;
200  void SetStandardOutputPath(const char *path) = delete;
201  void SetStandardErrorPath(const char *path) = delete;
202 
204 
206 
207  llvm::StringRef GetExpressionPrefixContents();
208 
209  uint64_t GetExprErrorLimit() const;
210 
211  bool GetUseHexImmediates() const;
212 
213  bool GetUseFastStepping() const;
214 
216 
218 
220 
222 
224 
225  bool GetUserSpecifiedTrapHandlerNames(Args &args) const;
226 
227  void SetUserSpecifiedTrapHandlerNames(const Args &args);
228 
229  bool GetDisplayRuntimeSupportValues() const;
230 
231  void SetDisplayRuntimeSupportValues(bool b);
232 
233  bool GetDisplayRecognizedArguments() const;
234 
235  void SetDisplayRecognizedArguments(bool b);
236 
238 
239  void SetProcessLaunchInfo(const ProcessLaunchInfo &launch_info);
240 
241  bool GetInjectLocalVariables(ExecutionContext *exe_ctx) const;
242 
243  void SetInjectLocalVariables(ExecutionContext *exe_ctx, bool b);
244 
245  void SetRequireHardwareBreakpoints(bool b);
246 
247  bool GetRequireHardwareBreakpoints() const;
248 
249  bool GetAutoInstallMainExecutable() const;
250 
252 
253  void SetDebugUtilityExpression(bool debug);
254 
255  bool GetDebugUtilityExpression() const;
256 
257 private:
258  // Callbacks for m_launch_info.
269 
270  // Settings checker for target.jit-save-objects-dir:
271  void CheckJITObjectsDir();
272 
274 
275  // Member variables.
277  std::unique_ptr<TargetExperimentalProperties> m_experimental_properties_up;
279 };
280 
282 public:
283 // MSVC has a bug here that reports C4268: 'const' static/global data
284 // initialized with compiler generated default constructor fills the object
285 // with zeros. Confirmed that MSVC is *not* zero-initializing, it's just a
286 // bogus warning.
287 #if defined(_MSC_VER)
288 #pragma warning(push)
289 #pragma warning(disable : 4268)
290 #endif
291  static constexpr std::chrono::milliseconds default_timeout{500};
292 #if defined(_MSC_VER)
293 #pragma warning(pop)
294 #endif
295 
298 
299  EvaluateExpressionOptions() = default;
300 
302 
304  m_execution_policy = policy;
305  }
306 
308 
309  void SetLanguage(lldb::LanguageType language) { m_language = language; }
310 
311  bool DoesCoerceToId() const { return m_coerce_to_id; }
312 
313  const char *GetPrefix() const {
314  return (m_prefix.empty() ? nullptr : m_prefix.c_str());
315  }
316 
317  void SetPrefix(const char *prefix) {
318  if (prefix && prefix[0])
319  m_prefix = prefix;
320  else
321  m_prefix.clear();
322  }
323 
324  void SetCoerceToId(bool coerce = true) { m_coerce_to_id = coerce; }
325 
326  bool DoesUnwindOnError() const { return m_unwind_on_error; }
327 
328  void SetUnwindOnError(bool unwind = false) { m_unwind_on_error = unwind; }
329 
331 
332  void SetIgnoreBreakpoints(bool ignore = false) {
333  m_ignore_breakpoints = ignore;
334  }
335 
336  bool DoesKeepInMemory() const { return m_keep_in_memory; }
337 
338  void SetKeepInMemory(bool keep = true) { m_keep_in_memory = keep; }
339 
341 
342  void
344  m_use_dynamic = dynamic;
345  }
346 
347  const Timeout<std::micro> &GetTimeout() const { return m_timeout; }
348 
349  void SetTimeout(const Timeout<std::micro> &timeout) { m_timeout = timeout; }
350 
352  return m_one_thread_timeout;
353  }
354 
356  m_one_thread_timeout = timeout;
357  }
358 
359  bool GetTryAllThreads() const { return m_try_others; }
360 
361  void SetTryAllThreads(bool try_others = true) { m_try_others = try_others; }
362 
363  bool GetStopOthers() const { return m_stop_others; }
364 
365  void SetStopOthers(bool stop_others = true) { m_stop_others = stop_others; }
366 
367  bool GetDebug() const { return m_debug; }
368 
369  void SetDebug(bool b) {
370  m_debug = b;
371  if (m_debug)
372  m_generate_debug_info = true;
373  }
374 
376 
378 
379  bool GetColorizeErrors() const { return m_ansi_color_errors; }
380 
382 
383  bool GetTrapExceptions() const { return m_trap_exceptions; }
384 
385  void SetTrapExceptions(bool b) { m_trap_exceptions = b; }
386 
387  bool GetREPLEnabled() const { return m_repl; }
388 
389  void SetREPLEnabled(bool b) { m_repl = b; }
390 
391  void SetCancelCallback(lldb::ExpressionCancelCallback callback, void *baton) {
392  m_cancel_callback_baton = baton;
393  m_cancel_callback = callback;
394  }
395 
397  return ((m_cancel_callback != nullptr)
399  : false);
400  }
401 
402  // Allows the expression contents to be remapped to point to the specified
403  // file and line using #line directives.
404  void SetPoundLine(const char *path, uint32_t line) const {
405  if (path && path[0]) {
406  m_pound_line_file = path;
407  m_pound_line_line = line;
408  } else {
409  m_pound_line_file.clear();
410  m_pound_line_line = 0;
411  }
412  }
413 
414  const char *GetPoundLineFilePath() const {
415  return (m_pound_line_file.empty() ? nullptr : m_pound_line_file.c_str());
416  }
417 
419 
421 
422  bool GetResultIsInternal() const { return m_result_is_internal; }
423 
425 
426  bool GetAutoApplyFixIts() const { return m_auto_apply_fixits; }
427 
428  void SetRetriesWithFixIts(uint64_t number_of_retries) {
429  m_retries_with_fixits = number_of_retries;
430  }
431 
432  uint64_t GetRetriesWithFixIts() const { return m_retries_with_fixits; }
433 
435 
437 
438 private:
442  bool m_coerce_to_id = false;
443  bool m_unwind_on_error = true;
444  bool m_ignore_breakpoints = false;
445  bool m_keep_in_memory = false;
446  bool m_try_others = true;
447  bool m_stop_others = true;
448  bool m_debug = false;
449  bool m_trap_exceptions = true;
450  bool m_repl = false;
451  bool m_generate_debug_info = false;
452  bool m_ansi_color_errors = false;
453  bool m_result_is_internal = false;
454  bool m_auto_apply_fixits = true;
455  uint64_t m_retries_with_fixits = 1;
456  /// True if the executed code should be treated as utility code that is only
457  /// used by LLDB internally.
459 
464  void *m_cancel_callback_baton = nullptr;
465  // If m_pound_line_file is not empty and m_pound_line_line is non-zero, use
466  // #line %u "%s" before the expression content to remap where the source
467  // originates
470 };
471 
472 // Target
473 class Target : public std::enable_shared_from_this<Target>,
474  public TargetProperties,
475  public Broadcaster,
476  public ExecutionContextScope,
477  public ModuleList::Notifier {
478 public:
479  friend class TargetList;
480  friend class Debugger;
481 
482  /// Broadcaster event bits definitions.
483  enum {
489  };
490 
491  // These two functions fill out the Broadcaster interface:
492 
494 
495  ConstString &GetBroadcasterClass() const override {
496  return GetStaticBroadcasterClass();
497  }
498 
499  // This event data class is for use by the TargetList to broadcast new target
500  // notifications.
501  class TargetEventData : public EventData {
502  public:
503  TargetEventData(const lldb::TargetSP &target_sp);
504 
505  TargetEventData(const lldb::TargetSP &target_sp,
506  const ModuleList &module_list);
507 
508  ~TargetEventData() override;
509 
510  static ConstString GetFlavorString();
511 
512  ConstString GetFlavor() const override {
514  }
515 
516  void Dump(Stream *s) const override;
517 
518  static const TargetEventData *GetEventDataFromEvent(const Event *event_ptr);
519 
520  static lldb::TargetSP GetTargetFromEvent(const Event *event_ptr);
521 
522  static ModuleList GetModuleListFromEvent(const Event *event_ptr);
523 
524  const lldb::TargetSP &GetTarget() const { return m_target_sp; }
525 
526  const ModuleList &GetModuleList() const { return m_module_list; }
527 
528  private:
529  lldb::TargetSP m_target_sp;
531 
532  TargetEventData(const TargetEventData &) = delete;
533  const TargetEventData &operator=(const TargetEventData &) = delete;
534  };
535 
536  ~Target() override;
537 
538  static void SettingsInitialize();
539 
540  static void SettingsTerminate();
541 
542  static FileSpecList GetDefaultExecutableSearchPaths();
543 
544  static FileSpecList GetDefaultDebugFileSearchPaths();
545 
547 
548  static void SetDefaultArchitecture(const ArchSpec &arch);
549 
550  bool IsDummyTarget() const { return m_is_dummy_target; }
551 
552  /// Find a binary on the system and return its Module,
553  /// or return an existing Module that is already in the Target.
554  ///
555  /// Given a ModuleSpec, find a binary satisifying that specification,
556  /// or identify a matching Module already present in the Target,
557  /// and return a shared pointer to it.
558  ///
559  /// \param[in] module_spec
560  /// The criteria that must be matched for the binary being loaded.
561  /// e.g. UUID, architecture, file path.
562  ///
563  /// \param[in] notify
564  /// If notify is true, and the Module is new to this Target,
565  /// Target::ModulesDidLoad will be called.
566  /// If notify is false, it is assumed that the caller is adding
567  /// multiple Modules and will call ModulesDidLoad with the
568  /// full list at the end.
569  /// ModulesDidLoad must be called when a Module/Modules have
570  /// been added to the target, one way or the other.
571  ///
572  /// \param[out] error_ptr
573  /// Optional argument, pointing to a Status object to fill in
574  /// with any results / messages while attempting to find/load
575  /// this binary. Many callers will be internal functions that
576  /// will handle / summarize the failures in a custom way and
577  /// don't use these messages.
578  ///
579  /// \return
580  /// An empty ModuleSP will be returned if no matching file
581  /// was found. If error_ptr was non-nullptr, an error message
582  /// will likely be provided.
583  lldb::ModuleSP GetOrCreateModule(const ModuleSpec &module_spec, bool notify,
584  Status *error_ptr = nullptr);
585 
586  // Settings accessors
587 
589 
590  std::recursive_mutex &GetAPIMutex();
591 
592  void DeleteCurrentProcess();
593 
594  void CleanupProcess();
595 
596  /// Dump a description of this object to a Stream.
597  ///
598  /// Dump a description of the contents of this object to the
599  /// supplied stream \a s. The dumped content will be only what has
600  /// been loaded or parsed up to this point at which this function
601  /// is called, so this is a good way to see what has been parsed
602  /// in a target.
603  ///
604  /// \param[in] s
605  /// The stream to which to dump the object description.
606  void Dump(Stream *s, lldb::DescriptionLevel description_level);
607 
608  // If listener_sp is null, the listener of the owning Debugger object will be
609  // used.
610  const lldb::ProcessSP &CreateProcess(lldb::ListenerSP listener_sp,
611  llvm::StringRef plugin_name,
612  const FileSpec *crash_file,
613  bool can_connect);
614 
615  const lldb::ProcessSP &GetProcessSP() const;
616 
617  bool IsValid() { return m_valid; }
618 
619  void Destroy();
620 
621  Status Launch(ProcessLaunchInfo &launch_info,
622  Stream *stream); // Optional stream to receive first stop info
623 
624  Status Attach(ProcessAttachInfo &attach_info,
625  Stream *stream); // Optional stream to receive first stop info
626 
627  // This part handles the breakpoints.
628 
629  BreakpointList &GetBreakpointList(bool internal = false);
630 
631  const BreakpointList &GetBreakpointList(bool internal = false) const;
632 
633  lldb::BreakpointSP GetLastCreatedBreakpoint() {
635  }
636 
637  lldb::BreakpointSP GetBreakpointByID(lldb::break_id_t break_id);
638 
639  // Use this to create a file and line breakpoint to a given module or all
640  // module it is nullptr
641  lldb::BreakpointSP CreateBreakpoint(const FileSpecList *containingModules,
642  const FileSpec &file, uint32_t line_no,
643  uint32_t column, lldb::addr_t offset,
644  LazyBool check_inlines,
645  LazyBool skip_prologue, bool internal,
646  bool request_hardware,
647  LazyBool move_to_nearest_code);
648 
649  // Use this to create breakpoint that matches regex against the source lines
650  // in files given in source_file_list: If function_names is non-empty, also
651  // filter by function after the matches are made.
652  lldb::BreakpointSP CreateSourceRegexBreakpoint(
653  const FileSpecList *containingModules,
654  const FileSpecList *source_file_list,
655  const std::unordered_set<std::string> &function_names,
656  RegularExpression source_regex, bool internal, bool request_hardware,
657  LazyBool move_to_nearest_code);
658 
659  // Use this to create a breakpoint from a load address
660  lldb::BreakpointSP CreateBreakpoint(lldb::addr_t load_addr, bool internal,
661  bool request_hardware);
662 
663  // Use this to create a breakpoint from a load address and a module file spec
664  lldb::BreakpointSP CreateAddressInModuleBreakpoint(lldb::addr_t file_addr,
665  bool internal,
666  const FileSpec *file_spec,
667  bool request_hardware);
668 
669  // Use this to create Address breakpoints:
670  lldb::BreakpointSP CreateBreakpoint(const Address &addr, bool internal,
671  bool request_hardware);
672 
673  // Use this to create a function breakpoint by regexp in
674  // containingModule/containingSourceFiles, or all modules if it is nullptr
675  // When "skip_prologue is set to eLazyBoolCalculate, we use the current
676  // target setting, else we use the values passed in
677  lldb::BreakpointSP CreateFuncRegexBreakpoint(
678  const FileSpecList *containingModules,
679  const FileSpecList *containingSourceFiles, RegularExpression func_regexp,
680  lldb::LanguageType requested_language, LazyBool skip_prologue,
681  bool internal, bool request_hardware);
682 
683  // Use this to create a function breakpoint by name in containingModule, or
684  // all modules if it is nullptr When "skip_prologue is set to
685  // eLazyBoolCalculate, we use the current target setting, else we use the
686  // values passed in. func_name_type_mask is or'ed values from the
687  // FunctionNameType enum.
688  lldb::BreakpointSP CreateBreakpoint(
689  const FileSpecList *containingModules,
690  const FileSpecList *containingSourceFiles, const char *func_name,
691  lldb::FunctionNameType func_name_type_mask, lldb::LanguageType language,
692  lldb::addr_t offset, LazyBool skip_prologue, bool internal,
693  bool request_hardware);
694 
695  lldb::BreakpointSP
696  CreateExceptionBreakpoint(enum lldb::LanguageType language, bool catch_bp,
697  bool throw_bp, bool internal,
698  Args *additional_args = nullptr,
699  Status *additional_args_error = nullptr);
700 
701  lldb::BreakpointSP CreateScriptedBreakpoint(
702  const llvm::StringRef class_name, const FileSpecList *containingModules,
703  const FileSpecList *containingSourceFiles, bool internal,
704  bool request_hardware, StructuredData::ObjectSP extra_args_sp,
705  Status *creation_error = nullptr);
706 
707  // This is the same as the func_name breakpoint except that you can specify a
708  // vector of names. This is cheaper than a regular expression breakpoint in
709  // the case where you just want to set a breakpoint on a set of names you
710  // already know. func_name_type_mask is or'ed values from the
711  // FunctionNameType enum.
712  lldb::BreakpointSP CreateBreakpoint(
713  const FileSpecList *containingModules,
714  const FileSpecList *containingSourceFiles, const char *func_names[],
715  size_t num_names, lldb::FunctionNameType func_name_type_mask,
716  lldb::LanguageType language, lldb::addr_t offset, LazyBool skip_prologue,
717  bool internal, bool request_hardware);
718 
719  lldb::BreakpointSP
720  CreateBreakpoint(const FileSpecList *containingModules,
721  const FileSpecList *containingSourceFiles,
722  const std::vector<std::string> &func_names,
723  lldb::FunctionNameType func_name_type_mask,
724  lldb::LanguageType language, lldb::addr_t m_offset,
725  LazyBool skip_prologue, bool internal,
726  bool request_hardware);
727 
728  // Use this to create a general breakpoint:
729  lldb::BreakpointSP CreateBreakpoint(lldb::SearchFilterSP &filter_sp,
730  lldb::BreakpointResolverSP &resolver_sp,
731  bool internal, bool request_hardware,
732  bool resolve_indirect_symbols);
733 
734  // Use this to create a watchpoint:
735  lldb::WatchpointSP CreateWatchpoint(lldb::addr_t addr, size_t size,
736  const CompilerType *type, uint32_t kind,
737  Status &error);
738 
739  lldb::WatchpointSP GetLastCreatedWatchpoint() {
741  }
742 
744 
745  // Manages breakpoint names:
746  void AddNameToBreakpoint(BreakpointID &id, const char *name, Status &error);
747 
748  void AddNameToBreakpoint(lldb::BreakpointSP &bp_sp, const char *name,
749  Status &error);
750 
751  void RemoveNameFromBreakpoint(lldb::BreakpointSP &bp_sp, ConstString name);
752 
753  BreakpointName *FindBreakpointName(ConstString name, bool can_create,
754  Status &error);
755 
757 
759  const BreakpointOptions &options,
760  const BreakpointName::Permissions &permissions);
761  void ApplyNameToBreakpoints(BreakpointName &bp_name);
762 
763  // This takes ownership of the name obj passed in.
764  void AddBreakpointName(BreakpointName *bp_name);
765 
766  void GetBreakpointNames(std::vector<std::string> &names);
767 
768  // This call removes ALL breakpoints regardless of permission.
769  void RemoveAllBreakpoints(bool internal_also = false);
770 
771  // This removes all the breakpoints, but obeys the ePermDelete on them.
773 
774  void DisableAllBreakpoints(bool internal_also = false);
775 
777 
778  void EnableAllBreakpoints(bool internal_also = false);
779 
781 
783 
784  bool EnableBreakpointByID(lldb::break_id_t break_id);
785 
786  bool RemoveBreakpointByID(lldb::break_id_t break_id);
787 
788  // The flag 'end_to_end', default to true, signifies that the operation is
789  // performed end to end, for both the debugger and the debuggee.
790 
791  bool RemoveAllWatchpoints(bool end_to_end = true);
792 
793  bool DisableAllWatchpoints(bool end_to_end = true);
794 
795  bool EnableAllWatchpoints(bool end_to_end = true);
796 
798 
800 
801  bool IgnoreAllWatchpoints(uint32_t ignore_count);
802 
804 
805  bool EnableWatchpointByID(lldb::watch_id_t watch_id);
806 
807  bool RemoveWatchpointByID(lldb::watch_id_t watch_id);
808 
809  bool IgnoreWatchpointByID(lldb::watch_id_t watch_id, uint32_t ignore_count);
810 
812  const BreakpointIDList &bp_ids,
813  bool append);
814 
816  BreakpointIDList &new_bps);
817 
819  std::vector<std::string> &names,
820  BreakpointIDList &new_bps);
821 
822  /// Get \a load_addr as a callable code load address for this target
823  ///
824  /// Take \a load_addr and potentially add any address bits that are
825  /// needed to make the address callable. For ARM this can set bit
826  /// zero (if it already isn't) if \a load_addr is a thumb function.
827  /// If \a addr_class is set to AddressClass::eInvalid, then the address
828  /// adjustment will always happen. If it is set to an address class
829  /// that doesn't have code in it, LLDB_INVALID_ADDRESS will be
830  /// returned.
832  lldb::addr_t load_addr,
833  AddressClass addr_class = AddressClass::eInvalid) const;
834 
835  /// Get \a load_addr as an opcode for this target.
836  ///
837  /// Take \a load_addr and potentially strip any address bits that are
838  /// needed to make the address point to an opcode. For ARM this can
839  /// clear bit zero (if it already isn't) if \a load_addr is a
840  /// thumb function and load_addr is in code.
841  /// If \a addr_class is set to AddressClass::eInvalid, then the address
842  /// adjustment will always happen. If it is set to an address class
843  /// that doesn't have code in it, LLDB_INVALID_ADDRESS will be
844  /// returned.
847  AddressClass addr_class = AddressClass::eInvalid) const;
848 
849  // Get load_addr as breakable load address for this target. Take a addr and
850  // check if for any reason there is a better address than this to put a
851  // breakpoint on. If there is then return that address. For MIPS, if
852  // instruction at addr is a delay slot instruction then this method will find
853  // the address of its previous instruction and return that address.
855 
856  void ModulesDidLoad(ModuleList &module_list);
857 
858  void ModulesDidUnload(ModuleList &module_list, bool delete_locations);
859 
860  void SymbolsDidLoad(ModuleList &module_list);
861 
862  void ClearModules(bool delete_locations);
863 
864  /// Called as the last function in Process::DidExec().
865  ///
866  /// Process::DidExec() will clear a lot of state in the process,
867  /// then try to reload a dynamic loader plugin to discover what
868  /// binaries are currently available and then this function should
869  /// be called to allow the target to do any cleanup after everything
870  /// has been figured out. It can remove breakpoints that no longer
871  /// make sense as the exec might have changed the target
872  /// architecture, and unloaded some modules that might get deleted.
873  void DidExec();
874 
875  /// Gets the module for the main executable.
876  ///
877  /// Each process has a notion of a main executable that is the file
878  /// that will be executed or attached to. Executable files can have
879  /// dependent modules that are discovered from the object files, or
880  /// discovered at runtime as things are dynamically loaded.
881  ///
882  /// \return
883  /// The shared pointer to the executable module which can
884  /// contains a nullptr Module object if no executable has been
885  /// set.
886  ///
887  /// \see DynamicLoader
888  /// \see ObjectFile::GetDependentModules (FileSpecList&)
889  /// \see Process::SetExecutableModule(lldb::ModuleSP&)
890  lldb::ModuleSP GetExecutableModule();
891 
893 
894  /// Set the main executable module.
895  ///
896  /// Each process has a notion of a main executable that is the file
897  /// that will be executed or attached to. Executable files can have
898  /// dependent modules that are discovered from the object files, or
899  /// discovered at runtime as things are dynamically loaded.
900  ///
901  /// Setting the executable causes any of the current dependent
902  /// image information to be cleared and replaced with the static
903  /// dependent image information found by calling
904  /// ObjectFile::GetDependentModules (FileSpecList&) on the main
905  /// executable and any modules on which it depends. Calling
906  /// Process::GetImages() will return the newly found images that
907  /// were obtained from all of the object files.
908  ///
909  /// \param[in] module_sp
910  /// A shared pointer reference to the module that will become
911  /// the main executable for this process.
912  ///
913  /// \param[in] load_dependent_files
914  /// If \b true then ask the object files to track down any
915  /// known dependent files.
916  ///
917  /// \see ObjectFile::GetDependentModules (FileSpecList&)
918  /// \see Process::GetImages()
919  void SetExecutableModule(
920  lldb::ModuleSP &module_sp,
921  LoadDependentFiles load_dependent_files = eLoadDependentsDefault);
922 
923  bool LoadScriptingResources(std::list<Status> &errors,
924  Stream *feedback_stream = nullptr,
925  bool continue_on_error = true) {
927  this, errors, feedback_stream, continue_on_error);
928  }
929 
930  /// Get accessor for the images for this process.
931  ///
932  /// Each process has a notion of a main executable that is the file
933  /// that will be executed or attached to. Executable files can have
934  /// dependent modules that are discovered from the object files, or
935  /// discovered at runtime as things are dynamically loaded. After
936  /// a main executable has been set, the images will contain a list
937  /// of all the files that the executable depends upon as far as the
938  /// object files know. These images will usually contain valid file
939  /// virtual addresses only. When the process is launched or attached
940  /// to, the DynamicLoader plug-in will discover where these images
941  /// were loaded in memory and will resolve the load virtual
942  /// addresses is each image, and also in images that are loaded by
943  /// code.
944  ///
945  /// \return
946  /// A list of Module objects in a module list.
947  const ModuleList &GetImages() const { return m_images; }
948 
950 
951  /// Return whether this FileSpec corresponds to a module that should be
952  /// considered for general searches.
953  ///
954  /// This API will be consulted by the SearchFilterForUnconstrainedSearches
955  /// and any module that returns \b true will not be searched. Note the
956  /// SearchFilterForUnconstrainedSearches is the search filter that
957  /// gets used in the CreateBreakpoint calls when no modules is provided.
958  ///
959  /// The target call at present just consults the Platform's call of the
960  /// same name.
961  ///
962  /// \param[in] module_spec
963  /// Path to the module.
964  ///
965  /// \return \b true if the module should be excluded, \b false otherwise.
966  bool ModuleIsExcludedForUnconstrainedSearches(const FileSpec &module_spec);
967 
968  /// Return whether this module should be considered for general searches.
969  ///
970  /// This API will be consulted by the SearchFilterForUnconstrainedSearches
971  /// and any module that returns \b true will not be searched. Note the
972  /// SearchFilterForUnconstrainedSearches is the search filter that
973  /// gets used in the CreateBreakpoint calls when no modules is provided.
974  ///
975  /// The target call at present just consults the Platform's call of the
976  /// same name.
977  ///
978  /// FIXME: When we get time we should add a way for the user to set modules
979  /// that they
980  /// don't want searched, in addition to or instead of the platform ones.
981  ///
982  /// \param[in] module_sp
983  /// A shared pointer reference to the module that checked.
984  ///
985  /// \return \b true if the module should be excluded, \b false otherwise.
986  bool
987  ModuleIsExcludedForUnconstrainedSearches(const lldb::ModuleSP &module_sp);
988 
989  const ArchSpec &GetArchitecture() const { return m_arch.GetSpec(); }
990 
991  /// Returns the name of the target's ABI plugin.
992  llvm::StringRef GetABIName() const;
993 
994  /// Set the architecture for this target.
995  ///
996  /// If the current target has no Images read in, then this just sets the
997  /// architecture, which will be used to select the architecture of the
998  /// ExecutableModule when that is set. If the current target has an
999  /// ExecutableModule, then calling SetArchitecture with a different
1000  /// architecture from the currently selected one will reset the
1001  /// ExecutableModule to that slice of the file backing the ExecutableModule.
1002  /// If the file backing the ExecutableModule does not contain a fork of this
1003  /// architecture, then this code will return false, and the architecture
1004  /// won't be changed. If the input arch_spec is the same as the already set
1005  /// architecture, this is a no-op.
1006  ///
1007  /// \param[in] arch_spec
1008  /// The new architecture.
1009  ///
1010  /// \param[in] set_platform
1011  /// If \b true, then the platform will be adjusted if the currently
1012  /// selected platform is not compatible with the architecture being set.
1013  /// If \b false, then just the architecture will be set even if the
1014  /// currently selected platform isn't compatible (in case it might be
1015  /// manually set following this function call).
1016  ///
1017  /// \return
1018  /// \b true if the architecture was successfully set, \b false otherwise.
1019  bool SetArchitecture(const ArchSpec &arch_spec, bool set_platform = false);
1020 
1021  bool MergeArchitecture(const ArchSpec &arch_spec);
1022 
1024 
1026 
1027  size_t ReadMemoryFromFileCache(const Address &addr, void *dst, size_t dst_len,
1028  Status &error);
1029 
1030  // Reading memory through the target allows us to skip going to the process
1031  // for reading memory if possible and it allows us to try and read from any
1032  // constant sections in our object files on disk. If you always want live
1033  // program memory, read straight from the process. If you possibly want to
1034  // read from const sections in object files, read from the target. This
1035  // version of ReadMemory will try and read memory from the process if the
1036  // process is alive. The order is:
1037  // 1 - if (force_live_memory == false) and the address falls in a read-only
1038  // section, then read from the file cache
1039  // 2 - if there is a process, then read from memory
1040  // 3 - if there is no process, then read from the file cache
1041  size_t ReadMemory(const Address &addr, void *dst, size_t dst_len,
1042  Status &error, bool force_live_memory = false,
1043  lldb::addr_t *load_addr_ptr = nullptr);
1044 
1045  size_t ReadCStringFromMemory(const Address &addr, std::string &out_str,
1046  Status &error, bool force_live_memory = false);
1047 
1048  size_t ReadCStringFromMemory(const Address &addr, char *dst,
1049  size_t dst_max_len, Status &result_error,
1050  bool force_live_memory = false);
1051 
1052  /// Read a NULL terminated string from memory
1053  ///
1054  /// This function will read a cache page at a time until a NULL string
1055  /// terminator is found. It will stop reading if an aligned sequence of NULL
1056  /// termination \a type_width bytes is not found before reading \a
1057  /// cstr_max_len bytes. The results are always guaranteed to be NULL
1058  /// terminated, and that no more than (max_bytes - type_width) bytes will be
1059  /// read.
1060  ///
1061  /// \param[in] addr
1062  /// The address to start the memory read.
1063  ///
1064  /// \param[in] dst
1065  /// A character buffer containing at least max_bytes.
1066  ///
1067  /// \param[in] max_bytes
1068  /// The maximum number of bytes to read.
1069  ///
1070  /// \param[in] error
1071  /// The error status of the read operation.
1072  ///
1073  /// \param[in] type_width
1074  /// The size of the null terminator (1 to 4 bytes per
1075  /// character). Defaults to 1.
1076  ///
1077  /// \return
1078  /// The error status or the number of bytes prior to the null terminator.
1079  size_t ReadStringFromMemory(const Address &addr, char *dst, size_t max_bytes,
1080  Status &error, size_t type_width,
1081  bool force_live_memory = true);
1082 
1083  size_t ReadScalarIntegerFromMemory(const Address &addr, uint32_t byte_size,
1084  bool is_signed, Scalar &scalar,
1085  Status &error,
1086  bool force_live_memory = false);
1087 
1088  uint64_t ReadUnsignedIntegerFromMemory(const Address &addr,
1089  size_t integer_byte_size,
1090  uint64_t fail_value, Status &error,
1091  bool force_live_memory = false);
1092 
1093  bool ReadPointerFromMemory(const Address &addr, Status &error,
1094  Address &pointer_addr,
1095  bool force_live_memory = false);
1096 
1099  }
1100 
1101  static Target *GetTargetFromContexts(const ExecutionContext *exe_ctx_ptr,
1102  const SymbolContext *sc_ptr);
1103 
1104  // lldb::ExecutionContextScope pure virtual functions
1105  lldb::TargetSP CalculateTarget() override;
1106 
1107  lldb::ProcessSP CalculateProcess() override;
1108 
1109  lldb::ThreadSP CalculateThread() override;
1110 
1111  lldb::StackFrameSP CalculateStackFrame() override;
1112 
1113  void CalculateExecutionContext(ExecutionContext &exe_ctx) override;
1114 
1116 
1117  llvm::Expected<TypeSystem &>
1119  bool create_on_demand = true);
1120 
1121  std::vector<TypeSystem *> GetScratchTypeSystems(bool create_on_demand = true);
1122 
1125 
1126  // Creates a UserExpression for the given language, the rest of the
1127  // parameters have the same meaning as for the UserExpression constructor.
1128  // Returns a new-ed object which the caller owns.
1129 
1130  UserExpression *
1131  GetUserExpressionForLanguage(llvm::StringRef expr, llvm::StringRef prefix,
1132  lldb::LanguageType language,
1133  Expression::ResultType desired_type,
1134  const EvaluateExpressionOptions &options,
1135  ValueObject *ctx_obj, Status &error);
1136 
1137  // Creates a FunctionCaller for the given language, the rest of the
1138  // parameters have the same meaning as for the FunctionCaller constructor.
1139  // Since a FunctionCaller can't be
1140  // IR Interpreted, it makes no sense to call this with an
1141  // ExecutionContextScope that lacks
1142  // a Process.
1143  // Returns a new-ed object which the caller owns.
1144 
1146  const CompilerType &return_type,
1147  const Address &function_address,
1148  const ValueList &arg_value_list,
1149  const char *name, Status &error);
1150 
1151  /// Creates and installs a UtilityFunction for the given language.
1152  llvm::Expected<std::unique_ptr<UtilityFunction>>
1154  lldb::LanguageType language, ExecutionContext &exe_ctx);
1155 
1156  // Install any files through the platform that need be to installed prior to
1157  // launching or attaching.
1158  Status Install(ProcessLaunchInfo *launch_info);
1159 
1160  bool ResolveFileAddress(lldb::addr_t load_addr, Address &so_addr);
1161 
1162  bool ResolveLoadAddress(lldb::addr_t load_addr, Address &so_addr,
1164 
1165  bool SetSectionLoadAddress(const lldb::SectionSP &section,
1166  lldb::addr_t load_addr,
1167  bool warn_multiple = false);
1168 
1169  size_t UnloadModuleSections(const lldb::ModuleSP &module_sp);
1170 
1171  size_t UnloadModuleSections(const ModuleList &module_list);
1172 
1173  bool SetSectionUnloaded(const lldb::SectionSP &section_sp);
1174 
1175  bool SetSectionUnloaded(const lldb::SectionSP &section_sp,
1176  lldb::addr_t load_addr);
1177 
1178  void ClearAllLoadedSections();
1179 
1180  /// Set the \a Trace object containing processor trace information of this
1181  /// target.
1182  ///
1183  /// \param[in] trace_sp
1184  /// The trace object.
1185  void SetTrace(const lldb::TraceSP &trace_sp);
1186 
1187  /// Get the \a Trace object containing processor trace information of this
1188  /// target.
1189  ///
1190  /// \return
1191  /// The trace object. It might be undefined.
1192  lldb::TraceSP GetTrace();
1193 
1194  /// Create a \a Trace object for the current target using the using the
1195  /// default supported tracing technology for this process.
1196  ///
1197  /// \return
1198  /// The new \a Trace or an \a llvm::Error if a \a Trace already exists or
1199  /// the trace couldn't be created.
1200  llvm::Expected<lldb::TraceSP> CreateTrace();
1201 
1202  /// If a \a Trace object is present, this returns it, otherwise a new Trace is
1203  /// created with \a Trace::CreateTrace.
1204  llvm::Expected<lldb::TraceSP> GetTraceOrCreate();
1205 
1206  // Since expressions results can persist beyond the lifetime of a process,
1207  // and the const expression results are available after a process is gone, we
1208  // provide a way for expressions to be evaluated from the Target itself. If
1209  // an expression is going to be run, then it should have a frame filled in in
1210  // the execution context.
1212  llvm::StringRef expression, ExecutionContextScope *exe_scope,
1213  lldb::ValueObjectSP &result_valobj_sp,
1215  std::string *fixed_expression = nullptr, ValueObject *ctx_obj = nullptr);
1216 
1217  lldb::ExpressionVariableSP GetPersistentVariable(ConstString name);
1218 
1220 
1221  /// This method will return the address of the starting function for
1222  /// this binary, e.g. main() or its equivalent. This can be used as
1223  /// an address of a function that is not called once a binary has
1224  /// started running - e.g. as a return address for inferior function
1225  /// calls that are unambiguous completion of the function call, not
1226  /// called during the course of the inferior function code running.
1227  ///
1228  /// If no entry point can be found, an invalid address is returned.
1229  ///
1230  /// \param [out] err
1231  /// This object will be set to failure if no entry address could
1232  /// be found, and may contain a helpful error message.
1233  //
1234  /// \return
1235  /// Returns the entry address for this program, or an error
1236  /// if none can be found.
1237  llvm::Expected<lldb_private::Address> GetEntryPointAddress();
1238 
1239  // Target Stop Hooks
1240  class StopHook : public UserID {
1241  public:
1242  StopHook(const StopHook &rhs);
1243  virtual ~StopHook() = default;
1244 
1246  enum class StopHookResult : uint32_t {
1247  KeepStopped = 0,
1250  };
1251 
1252  lldb::TargetSP &GetTarget() { return m_target_sp; }
1253 
1254  // Set the specifier. The stop hook will own the specifier, and is
1255  // responsible for deleting it when we're done.
1256  void SetSpecifier(SymbolContextSpecifier *specifier);
1257 
1259 
1260  bool ExecutionContextPasses(const ExecutionContext &exe_ctx);
1261 
1262  // Called on stop, this gets passed the ExecutionContext for each "stop
1263  // with a reason" thread. It should add to the stream whatever text it
1264  // wants to show the user, and return False to indicate it wants the target
1265  // not to stop.
1266  virtual StopHookResult HandleStop(ExecutionContext &exe_ctx,
1267  lldb::StreamSP output) = 0;
1268 
1269  // Set the Thread Specifier. The stop hook will own the thread specifier,
1270  // and is responsible for deleting it when we're done.
1271  void SetThreadSpecifier(ThreadSpec *specifier);
1272 
1274 
1275  bool IsActive() { return m_active; }
1276 
1277  void SetIsActive(bool is_active) { m_active = is_active; }
1278 
1279  void SetAutoContinue(bool auto_continue) {
1280  m_auto_continue = auto_continue;
1281  }
1282 
1283  bool GetAutoContinue() const { return m_auto_continue; }
1284 
1285  void GetDescription(Stream *s, lldb::DescriptionLevel level) const;
1286  virtual void GetSubclassDescription(Stream *s,
1287  lldb::DescriptionLevel level) const = 0;
1288 
1289  protected:
1290  lldb::TargetSP m_target_sp;
1291  lldb::SymbolContextSpecifierSP m_specifier_sp;
1292  std::unique_ptr<ThreadSpec> m_thread_spec_up;
1293  bool m_active = true;
1294  bool m_auto_continue = false;
1295 
1296  StopHook(lldb::TargetSP target_sp, lldb::user_id_t uid);
1297  };
1298 
1300  public:
1301  ~StopHookCommandLine() override = default;
1302 
1304  void SetActionFromString(const std::string &strings);
1305  void SetActionFromStrings(const std::vector<std::string> &strings);
1306 
1308  lldb::StreamSP output_sp) override;
1310  lldb::DescriptionLevel level) const override;
1311 
1312  private:
1314  // Use CreateStopHook to make a new empty stop hook. The GetCommandPointer
1315  // and fill it with commands, and SetSpecifier to set the specifier shared
1316  // pointer (can be null, that will match anything.)
1317  StopHookCommandLine(lldb::TargetSP target_sp, lldb::user_id_t uid)
1318  : StopHook(target_sp, uid) {}
1319  friend class Target;
1320  };
1321 
1322  class StopHookScripted : public StopHook {
1323  public:
1324  ~StopHookScripted() override = default;
1326  lldb::StreamSP output) override;
1327 
1329  StructuredData::ObjectSP extra_args_sp);
1330 
1332  lldb::DescriptionLevel level) const override;
1333 
1334  private:
1336  /// This holds the dictionary of keys & values that can be used to
1337  /// parametrize any given callback's behavior.
1339  /// This holds the python callback object.
1341 
1342  /// Use CreateStopHook to make a new empty stop hook. The GetCommandPointer
1343  /// and fill it with commands, and SetSpecifier to set the specifier shared
1344  /// pointer (can be null, that will match anything.)
1345  StopHookScripted(lldb::TargetSP target_sp, lldb::user_id_t uid)
1346  : StopHook(target_sp, uid) {}
1347  friend class Target;
1348  };
1349 
1350  typedef std::shared_ptr<StopHook> StopHookSP;
1351 
1352  /// Add an empty stop hook to the Target's stop hook list, and returns a
1353  /// shared pointer to it in new_hook. Returns the id of the new hook.
1355 
1356  /// If you tried to create a stop hook, and that failed, call this to
1357  /// remove the stop hook, as it will also reset the stop hook counter.
1359 
1360  // Runs the stop hooks that have been registered for this target.
1361  // Returns true if the stop hooks cause the target to resume.
1362  bool RunStopHooks();
1363 
1364  size_t GetStopHookSize();
1365 
1366  bool SetSuppresStopHooks(bool suppress) {
1367  bool old_value = m_suppress_stop_hooks;
1368  m_suppress_stop_hooks = suppress;
1369  return old_value;
1370  }
1371 
1373 
1375 
1376  void RemoveAllStopHooks();
1377 
1379 
1380  bool SetStopHookActiveStateByID(lldb::user_id_t uid, bool active_state);
1381 
1382  void SetAllStopHooksActiveState(bool active_state);
1383 
1384  size_t GetNumStopHooks() const { return m_stop_hooks.size(); }
1385 
1387  if (index >= GetNumStopHooks())
1388  return StopHookSP();
1389  StopHookCollection::iterator pos = m_stop_hooks.begin();
1390 
1391  while (index > 0) {
1392  pos++;
1393  index--;
1394  }
1395  return (*pos).second;
1396  }
1397 
1398  lldb::PlatformSP GetPlatform() { return m_platform_sp; }
1399 
1400  void SetPlatform(const lldb::PlatformSP &platform_sp) {
1401  m_platform_sp = platform_sp;
1402  }
1403 
1405 
1406  // Methods.
1407  lldb::SearchFilterSP
1408  GetSearchFilterForModule(const FileSpec *containingModule);
1409 
1410  lldb::SearchFilterSP
1411  GetSearchFilterForModuleList(const FileSpecList *containingModuleList);
1412 
1413  lldb::SearchFilterSP
1414  GetSearchFilterForModuleAndCUList(const FileSpecList *containingModules,
1415  const FileSpecList *containingSourceFiles);
1416 
1417  lldb::REPLSP GetREPL(Status &err, lldb::LanguageType language,
1418  const char *repl_options, bool can_create);
1419 
1420  void SetREPL(lldb::LanguageType language, lldb::REPLSP repl_sp);
1421 
1424  }
1425 
1426  /// Add a signal for the target. This will get copied over to the process
1427  /// if the signal exists on that target. Only the values with Yes and No are
1428  /// set, Calculate values will be ignored.
1429 protected:
1435  pass(pass), notify(notify), stop(stop) {}
1436  DummySignalValues() = default;
1437  };
1438  using DummySignalElement = llvm::StringMapEntry<DummySignalValues>;
1439  static bool UpdateSignalFromDummy(lldb::UnixSignalsSP signals_sp,
1440  const DummySignalElement &element);
1441  static bool ResetSignalFromDummy(lldb::UnixSignalsSP signals_sp,
1442  const DummySignalElement &element);
1443 
1444 public:
1445  /// Add a signal to the Target's list of stored signals/actions. These
1446  /// values will get copied into any processes launched from
1447  /// this target.
1448  void AddDummySignal(llvm::StringRef name, LazyBool pass, LazyBool print,
1449  LazyBool stop);
1450  /// Updates the signals in signals_sp using the stored dummy signals.
1451  /// If warning_stream_sp is not null, if any stored signals are not found in
1452  /// the current process, a warning will be emitted here.
1453  void UpdateSignalsFromDummy(lldb::UnixSignalsSP signals_sp,
1454  lldb::StreamSP warning_stream_sp);
1455  /// Clear the dummy signals in signal_names from the target, or all signals
1456  /// if signal_names is empty. Also remove the behaviors they set from the
1457  /// process's signals if it exists.
1458  void ClearDummySignals(Args &signal_names);
1459  /// Print all the signals set in this target.
1460  void PrintDummySignals(Stream &strm, Args &signals);
1461 
1462 protected:
1463  /// Implementing of ModuleList::Notifier.
1464 
1465  void NotifyModuleAdded(const ModuleList &module_list,
1466  const lldb::ModuleSP &module_sp) override;
1467 
1468  void NotifyModuleRemoved(const ModuleList &module_list,
1469  const lldb::ModuleSP &module_sp) override;
1470 
1471  void NotifyModuleUpdated(const ModuleList &module_list,
1472  const lldb::ModuleSP &old_module_sp,
1473  const lldb::ModuleSP &new_module_sp) override;
1474 
1475  void NotifyWillClearList(const ModuleList &module_list) override;
1476 
1477  void NotifyModulesRemoved(lldb_private::ModuleList &module_list) override;
1478 
1479  class Arch {
1480  public:
1481  explicit Arch(const ArchSpec &spec);
1482  const Arch &operator=(const ArchSpec &spec);
1483 
1484  const ArchSpec &GetSpec() const { return m_spec; }
1485  Architecture *GetPlugin() const { return m_plugin_up.get(); }
1486 
1487  private:
1489  std::unique_ptr<Architecture> m_plugin_up;
1490  };
1491 
1492  // Member variables.
1494  lldb::PlatformSP m_platform_sp; ///< The platform for this target.
1495  std::recursive_mutex m_mutex; ///< An API mutex that is used by the lldb::SB*
1496  /// classes make the SB interface thread safe
1497  /// When the private state thread calls SB API's - usually because it is
1498  /// running OS plugin or Python ThreadPlan code - it should not block on the
1499  /// API mutex that is held by the code that kicked off the sequence of events
1500  /// that led us to run the code. We hand out this mutex instead when we
1501  /// detect that code is running on the private state thread.
1502  std::recursive_mutex m_private_mutex;
1504  ModuleList m_images; ///< The list of images for this process (shared
1505  /// libraries and anything dynamically loaded).
1509  using BreakpointNameList = std::map<ConstString, BreakpointName *>;
1511 
1512  lldb::BreakpointSP m_last_created_breakpoint;
1514  lldb::WatchpointSP m_last_created_watchpoint;
1515  // We want to tightly control the process destruction process so we can
1516  // correctly tear down everything that we need to, so the only class that
1517  // knows about the process lifespan is this target class.
1518  lldb::ProcessSP m_process_sp;
1519  lldb::SearchFilterSP m_search_filter_sp;
1522 
1523  typedef std::map<lldb::LanguageType, lldb::REPLSP> REPLMap;
1525 
1526  lldb::SourceManagerUP m_source_manager_up;
1527 
1528  typedef std::map<lldb::user_id_t, StopHookSP> StopHookCollection;
1531  uint32_t m_latest_stop_hook_id; /// This records the last natural stop at
1532  /// which we ran a stop-hook.
1533  bool m_valid;
1534  bool m_suppress_stop_hooks; /// Used to not run stop hooks for expressions
1537  /// An optional \a lldb_private::Trace object containing processor trace
1538  /// information of this target.
1539  lldb::TraceSP m_trace_sp;
1540  /// Stores the frame recognizers of this target.
1541  lldb::StackFrameRecognizerManagerUP m_frame_recognizer_manager_up;
1542  /// These are used to set the signal state when you don't have a process and
1543  /// more usefully in the Dummy target where you can't know exactly what
1544  /// signals you will have.
1545  llvm::StringMap<DummySignalValues> m_dummy_signals;
1546 
1547  static void ImageSearchPathsChanged(const PathMappingList &path_list,
1548  void *baton);
1549 
1550  // Utilities for `statistics` command.
1551 private:
1552  // Target metrics storage.
1554 
1555 public:
1556  /// Get metrics associated with this target in JSON format.
1557  ///
1558  /// Target metrics help measure timings and information that is contained in
1559  /// a target. These are designed to help measure performance of a debug
1560  /// session as well as represent the current state of the target, like
1561  /// information on the currently modules, currently set breakpoints and more.
1562  ///
1563  /// \return
1564  /// Returns a JSON value that contains all target metrics.
1565  llvm::json::Value ReportStatistics();
1566 
1568 
1569 private:
1570  /// Construct with optional file and arch.
1571  ///
1572  /// This member is private. Clients must use
1573  /// TargetList::CreateTarget(const FileSpec*, const ArchSpec*)
1574  /// so all targets can be tracked from the central target list.
1575  ///
1576  /// \see TargetList::CreateTarget(const FileSpec*, const ArchSpec*)
1577  Target(Debugger &debugger, const ArchSpec &target_arch,
1578  const lldb::PlatformSP &platform_sp, bool is_dummy_target);
1579 
1580  // Helper function.
1581  bool ProcessIsValid();
1582 
1583  // Copy breakpoints, stop hooks and so forth from the dummy target:
1584  void PrimeFromDummyTarget(Target &target);
1585 
1586  void AddBreakpoint(lldb::BreakpointSP breakpoint_sp, bool internal);
1587 
1589 
1590  /// Return a recommended size for memory reads at \a addr, optimizing for
1591  /// cache usage.
1593 
1594  Target(const Target &) = delete;
1595  const Target &operator=(const Target &) = delete;
1596 };
1597 
1598 } // namespace lldb_private
1599 
1600 #endif // LLDB_TARGET_TARGET_H
lldb_private::EvaluateExpressionOptions::DoesKeepInMemory
bool DoesKeepInMemory() const
Definition: Target.h:336
lldb_private::TargetProperties::GetStandardInputPath
FileSpec GetStandardInputPath() const
Definition: Target.cpp:4420
lldb_private::Target::PrimeFromDummyTarget
void PrimeFromDummyTarget(Target &target)
Definition: Target.cpp:131
lldb_private::Target::GetFrameRecognizerManager
StackFrameRecognizerManager & GetFrameRecognizerManager()
Definition: Target.h:1422
lldb_private::Target::TargetEventData::GetTarget
const lldb::TargetSP & GetTarget() const
Definition: Target.h:524
lldb_private::ModuleList::LoadScriptingResourcesInTarget
bool LoadScriptingResourcesInTarget(Target *target, std::list< Status > &errors, Stream *feedback_stream=nullptr, bool continue_on_error=true)
Definition: ModuleList.cpp:1028
lldb_private::TargetProperties::DisableSTDIOValueChangedCallback
void DisableSTDIOValueChangedCallback()
Definition: Target.cpp:4660
lldb_private::Target::ConfigureBreakpointName
void ConfigureBreakpointName(BreakpointName &bp_name, const BreakpointOptions &options, const BreakpointName::Permissions &permissions)
Definition: Target.cpp:752
lldb_private::TargetProperties::GetDynamicClassInfoHelper
DynamicClassInfoHelper GetDynamicClassInfoHelper() const
Definition: Target.cpp:4318
lldb_private::EvaluateExpressionOptions::m_cancel_callback
lldb::ExpressionCancelCallback m_cancel_callback
Definition: Target.h:463
lldb_private::EvaluateExpressionOptions::GetColorizeErrors
bool GetColorizeErrors() const
Definition: Target.h:379
lldb_private::Target::DummySignalElement
llvm::StringMapEntry< DummySignalValues > DummySignalElement
Definition: Target.h:1438
BreakpointName.h
lldb_private::ExecutionContext
Definition: ExecutionContext.h:292
lldb_private::Target::StopHookCommandLine::StopHookCommandLine
StopHookCommandLine(lldb::TargetSP target_sp, lldb::user_id_t uid)
Definition: Target.h:1317
lldb_private::EvaluateExpressionOptions::GetTimeout
const Timeout< std::micro > & GetTimeout() const
Definition: Target.h:347
lldb-public.h
lldb_private::Target::Destroy
void Destroy()
Definition: Target.cpp:275
lldb_private::Target::StopHook::StopHook
StopHook(const StopHook &rhs)
Definition: Target.cpp:3494
lldb_private::TargetProperties::ComputeEnvironment
Environment ComputeEnvironment() const
Definition: Target.cpp:4177
lldb_private::MemoryModuleLoadLevel
MemoryModuleLoadLevel
Definition: lldb-private-enumerations.h:169
lldb_private::Target::NotifyWillClearList
void NotifyWillClearList(const ModuleList &module_list) override
Definition: Target.cpp:1590
lldb_private::BreakpointList
General Outline: Allows adding and removing breakpoints and find by ID and index.
Definition: BreakpointList.h:25
lldb_private::Architecture
Definition: Architecture.h:17
lldb_private::TargetProperties::GetDisplayExpressionsInCrashlogs
bool GetDisplayExpressionsInCrashlogs() const
Definition: Target.cpp:4498
lldb_private::ArchSpec
Definition: ArchSpec.h:33
lldb_private::Target::RemoveNameFromBreakpoint
void RemoveNameFromBreakpoint(lldb::BreakpointSP &bp_sp, ConstString name)
Definition: Target.cpp:747
lldb_private::RegularExpression
Definition: RegularExpression.h:18
lldb_private::Target::m_latest_stop_hook_id
uint32_t m_latest_stop_hook_id
Definition: Target.h:1531
lldb_private::Target::m_last_created_breakpoint
lldb::BreakpointSP m_last_created_breakpoint
Definition: Target.h:1512
lldb_private::TargetProperties::SetArg0
void SetArg0(llvm::StringRef arg)
Definition: Target.cpp:4160
lldb_private::TargetProperties::GetRequireHardwareBreakpoints
bool GetRequireHardwareBreakpoints() const
Definition: Target.cpp:4593
lldb_private::Target::DeleteBreakpointName
void DeleteBreakpointName(ConstString name)
Definition: Target.cpp:736
lldb_private::TargetProperties::GetInheritTCC
bool GetInheritTCC() const
Definition: Target.cpp:4104
lldb_private::TargetProperties::SetRequireHardwareBreakpoints
void SetRequireHardwareBreakpoints(bool b)
Definition: Target.cpp:4599
lldb_private::Event
Definition: Event.h:182
lldb_private::Target::GetEntryPointAddress
llvm::Expected< lldb_private::Address > GetEntryPointAddress()
This method will return the address of the starting function for this binary, e.g.
Definition: Target.cpp:2562
lldb_private::TargetProperties::GetTargetEnvironment
Environment GetTargetEnvironment() const
Definition: Target.cpp:4238
lldb_private::Target::ModuleIsExcludedForUnconstrainedSearches
bool ModuleIsExcludedForUnconstrainedSearches(const FileSpec &module_spec)
Return whether this FileSpec corresponds to a module that should be considered for general searches.
Definition: Target.cpp:1671
lldb_private::TargetProperties::OutputPathValueChangedCallback
void OutputPathValueChangedCallback()
Definition: Target.cpp:4629
lldb_private::Target::ClearModules
void ClearModules(bool delete_locations)
Definition: Target.cpp:1398
lldb_private::EvaluateExpressionOptions::SetTimeout
void SetTimeout(const Timeout< std::micro > &timeout)
Definition: Target.h:349
lldb_private::EvaluateExpressionOptions::SetREPLEnabled
void SetREPLEnabled(bool b)
Definition: Target.h:389
lldb_private::EvaluateExpressionOptions::SetLanguage
void SetLanguage(lldb::LanguageType language)
Definition: Target.h:309
lldb_private::Target::m_repl_map
REPLMap m_repl_map
Definition: Target.h:1524
lldb_private::Target::SymbolsDidLoad
void SymbolsDidLoad(ModuleList &module_list)
Definition: Target.cpp:1645
lldb_private::TargetProperties::GetExprErrorLimit
uint64_t GetExprErrorLimit() const
Definition: Target.cpp:4474
lldb_private::ExecutionPolicy
ExecutionPolicy
Expression execution policies.
Definition: lldb-private-enumerations.h:144
lldb_private::Target::StopHookCommandLine::HandleStop
StopHookResult HandleStop(ExecutionContext &exc_ctx, lldb::StreamSP output_sp) override
Definition: Target.cpp:3598
lldb_private::Target::StopHook::m_target_sp
lldb::TargetSP m_target_sp
Definition: Target.h:1290
lldb_private::Target::DummySignalValues::pass
LazyBool pass
Definition: Target.h:1431
lldb_private::Target::m_suppress_stop_hooks
bool m_suppress_stop_hooks
Definition: Target.h:1534
lldb_private::AddressClass
AddressClass
Definition: lldb-private-enumerations.h:48
lldb_private::Target::m_stats
TargetStats m_stats
Definition: Target.h:1553
lldb_private::Target::DisableBreakpointByID
bool DisableBreakpointByID(lldb::break_id_t break_id)
Definition: Target.cpp:968
lldb_private::StructuredData::GenericSP
std::shared_ptr< Generic > GenericSP
Definition: StructuredData.h:68
lldb::eNoDynamicValues
@ eNoDynamicValues
Definition: lldb-enumerations.h:495
lldb_private::Target::DummySignalValues
Add a signal for the target.
Definition: Target.h:1430
lldb_private::Target::StopHook::StopHookKind::ScriptBased
@ ScriptBased
lldb_private::Target::StopHookCommandLine::SetActionFromStrings
void SetActionFromStrings(const std::vector< std::string > &strings)
Definition: Target.cpp:3591
lldb_private::TargetProperties::SetStandardInputPath
void SetStandardInputPath(llvm::StringRef path)
Definition: Target.cpp:4425
lldb_private::TargetProperties::SetDisplayRuntimeSupportValues
void SetDisplayRuntimeSupportValues(bool b)
Definition: Target.cpp:4546
lldb_private::TargetProperties::SetDisplayRecognizedArguments
void SetDisplayRecognizedArguments(bool b)
Definition: Target.cpp:4556
lldb_private::Target::StopHook::m_thread_spec_up
std::unique_ptr< ThreadSpec > m_thread_spec_up
Definition: Target.h:1292
lldb_private::TargetProperties::GetPreloadSymbols
bool GetPreloadSymbols() const
Definition: Target.cpp:4082
lldb_private::Target::GetOrCreateModule
lldb::ModuleSP GetOrCreateModule(const ModuleSpec &module_spec, bool notify, Status *error_ptr=nullptr)
Find a binary on the system and return its Module, or return an existing Module that is already in th...
Definition: Target.cpp:2065
lldb::ExpressionCancelCallback
bool(* ExpressionCancelCallback)(ExpressionEvaluationPhase phase, void *baton)
Definition: lldb-types.h:74
lldb::ExpressionResults
ExpressionResults
The results of expression evaluation.
Definition: lldb-enumerations.h:270
lldb_private::Target::StopHook::SetAutoContinue
void SetAutoContinue(bool auto_continue)
Definition: Target.h:1279
lldb_private::Target::GetBreakpointNames
void GetBreakpointNames(std::vector< std::string > &names)
Definition: Target.cpp:774
lldb_private::Target::operator=
const Target & operator=(const Target &)=delete
ProcessLaunchInfo.h
lldb_private::Target::StopHook::m_auto_continue
bool m_auto_continue
Definition: Target.h:1294
lldb_private::UserID
Definition: UserID.h:31
lldb_private::Target::UnloadModuleSections
size_t UnloadModuleSections(const lldb::ModuleSP &module_sp)
Definition: Target.cpp:2946
lldb_private::LoadDependentFiles
LoadDependentFiles
Definition: Target.h:62
lldb_private::TargetProperties::GetMaximumSizeOfStringSummary
uint32_t GetMaximumSizeOfStringSummary() const
Definition: Target.cpp:4408
lldb_private::eImportStdModuleTrue
@ eImportStdModuleTrue
Definition: Target.h:71
lldb_private::Target::CalculateThread
lldb::ThreadSP CalculateThread() override
Definition: Target.cpp:2265
lldb_private::Scalar
Definition: Scalar.h:34
lldb_private::eImportStdModuleFallback
@ eImportStdModuleFallback
Definition: Target.h:70
lldb_private::EvaluateExpressionOptions::DoesCoerceToId
bool DoesCoerceToId() const
Definition: Target.h:311
lldb_private::Target::GetExecutableModulePointer
Module * GetExecutableModulePointer()
Definition: Target.cpp:1376
Architecture.h
lldb_private::TargetStats
A class that represents statistics for a since lldb_private::Target.
Definition: Statistics.h:129
lldb_private::Target::StopHook::HandleStop
virtual StopHookResult HandleStop(ExecutionContext &exe_ctx, lldb::StreamSP output)=0
lldb_private::TargetProperties::GetEnableSyntheticValue
bool GetEnableSyntheticValue() const
Definition: Target.cpp:4381
lldb_private::Target::CalculateProcess
lldb::ProcessSP CalculateProcess() override
Definition: Target.cpp:2263
lldb_private::Target::DisableAllBreakpoints
void DisableAllBreakpoints(bool internal_also=false)
Definition: Target.cpp:914
lldb_private::eLoadScriptFromSymFileFalse
@ eLoadScriptFromSymFileFalse
Definition: Target.h:52
lldb_private::Target::REPLMap
std::map< lldb::LanguageType, lldb::REPLSP > REPLMap
Definition: Target.h:1523
lldb_private::EventData
Definition: Event.h:36
lldb_private::Target::GetExecutableModule
lldb::ModuleSP GetExecutableModule()
Gets the module for the main executable.
Definition: Target.cpp:1362
lldb_private::EvaluateExpressionOptions::SetExecutionPolicy
void SetExecutionPolicy(ExecutionPolicy policy=eExecutionPolicyAlways)
Definition: Target.h:303
lldb_private::Target::BreakpointNameList
std::map< ConstString, BreakpointName * > BreakpointNameList
Definition: Target.h:1509
lldb_private::TargetProperties::GetMemoryModuleLoadLevel
MemoryModuleLoadLevel GetMemoryModuleLoadLevel() const
Definition: Target.cpp:4524
lldb_private::Target::ClearDummySignals
void ClearDummySignals(Args &signal_names)
Clear the dummy signals in signal_names from the target, or all signals if signal_names is empty.
Definition: Target.cpp:3434
lldb_private::EvaluateExpressionOptions::GetPrefix
const char * GetPrefix() const
Definition: Target.h:313
lldb_private::Target::AddBreakpoint
void AddBreakpoint(lldb::BreakpointSP breakpoint_sp, bool internal)
Definition: Target.cpp:661
lldb_private::EvaluateExpressionOptions::SetIsForUtilityExpr
void SetIsForUtilityExpr(bool b)
Definition: Target.h:436
lldb_private::TargetProperties::~TargetProperties
~TargetProperties() override
lldb_private::Target::ClearAllWatchpointHistoricValues
bool ClearAllWatchpointHistoricValues()
Definition: Target.cpp:1260
lldb_private::Target::StopHookCommandLine::m_commands
StringList m_commands
Definition: Target.h:1313
lldb_private::TargetProperties::SetDisableASLR
void SetDisableASLR(bool b)
Definition: Target.cpp:4099
lldb_private::Target::Arch::operator=
const Arch & operator=(const ArchSpec &spec)
Definition: Target.cpp:79
lldb_private::eDynamicClassInfoHelperRealizedClassesStruct
@ eDynamicClassInfoHelperRealizedClassesStruct
Definition: Target.h:76
lldb_private::EvaluateExpressionOptions::DoesIgnoreBreakpoints
bool DoesIgnoreBreakpoints() const
Definition: Target.h:330
lldb_private::EvaluateExpressionOptions::SetTrapExceptions
void SetTrapExceptions(bool b)
Definition: Target.h:385
lldb_private::EvaluateExpressionOptions
Definition: Target.h:281
lldb_private::TargetProperties::GetLoadScriptFromSymbolFile
LoadScriptFromSymFile GetLoadScriptFromSymbolFile() const
Definition: Target.cpp:4504
lldb_private::Target::m_valid
bool m_valid
This records the last natural stop at which we ran a stop-hook.
Definition: Target.h:1533
lldb_private::TargetProperties::m_experimental_properties_up
std::unique_ptr< TargetExperimentalProperties > m_experimental_properties_up
Definition: Target.h:277
lldb_private::TargetProperties::GetInjectLocalVariables
bool GetInjectLocalVariables(ExecutionContext *exe_ctx) const
Definition: Target.cpp:4025
lldb_private::EvaluateExpressionOptions::SetPoundLine
void SetPoundLine(const char *path, uint32_t line) const
Definition: Target.h:404
lldb::LanguageType
LanguageType
Programming language type.
Definition: lldb-enumerations.h:436
lldb_private::EvaluateExpressionOptions::m_repl
bool m_repl
Definition: Target.h:450
lldb_private::Target::StopHookScripted
Definition: Target.h:1322
lldb_private::TargetList
Definition: TargetList.h:21
lldb_private::Target::StopHook::GetAutoContinue
bool GetAutoContinue() const
Definition: Target.h:1283
lldb_private::eLoadDependentsDefault
@ eLoadDependentsDefault
Definition: Target.h:63
lldb_private::EvaluateExpressionOptions::SetCancelCallback
void SetCancelCallback(lldb::ExpressionCancelCallback callback, void *baton)
Definition: Target.h:391
lldb_private::Target::m_watchpoint_list
WatchpointList m_watchpoint_list
Definition: Target.h:1513
lldb_private::Target::StopHook::GetTarget
lldb::TargetSP & GetTarget()
Definition: Target.h:1252
lldb_private::Module
Definition: Module.h:85
lldb_private::Target::StopHookScripted::m_extra_args
StructuredDataImpl m_extra_args
This holds the dictionary of keys & values that can be used to parametrize any given callback's behav...
Definition: Target.h:1338
lldb_private::Target::GetScratchTypeSystemForLanguage
llvm::Expected< TypeSystem & > GetScratchTypeSystemForLanguage(lldb::LanguageType language, bool create_on_demand=true)
Definition: Target.cpp:2287
lldb_private::Target::GetReasonableReadSize
lldb::addr_t GetReasonableReadSize(const Address &addr)
Return a recommended size for memory reads at addr, optimizing for cache usage.
Definition: Target.cpp:1933
lldb_private::Target::GetImageSearchPathList
PathMappingList & GetImageSearchPathList()
Definition: Target.cpp:2274
lldb_private::Target::StopHookCommandLine::SetActionFromString
void SetActionFromString(const std::string &strings)
Definition: Target.cpp:3587
lldb_private::Target::TargetEventData::GetEventDataFromEvent
static const TargetEventData * GetEventDataFromEvent(const Event *event_ptr)
Definition: Target.cpp:4704
lldb_private::ValueList
Definition: Value.h:157
lldb_private::Target::m_platform_sp
lldb::PlatformSP m_platform_sp
The platform for this target.
Definition: Target.h:1494
lldb_private::BreakpointName
Definition: BreakpointName.h:30
lldb_private::Target::CreateExceptionBreakpoint
lldb::BreakpointSP CreateExceptionBreakpoint(enum lldb::LanguageType language, bool catch_bp, bool throw_bp, bool internal, Args *additional_args=nullptr, Status *additional_args_error=nullptr)
Definition: Target.cpp:599
Disassembler.h
lldb_private::eDynamicClassInfoHelperGetRealizedClassList
@ eDynamicClassInfoHelperGetRealizedClassList
Definition: Target.h:78
lldb_private::TargetProperties::SetDebugUtilityExpression
void SetDebugUtilityExpression(bool debug)
Definition: Target.cpp:4673
lldb_private::UserExpression
Definition: UserExpression.h:35
lldb_private::TargetProperties::InputPathValueChangedCallback
void InputPathValueChangedCallback()
Definition: Target.cpp:4624
lldb_private::Target::GetTargetFromContexts
static Target * GetTargetFromContexts(const ExecutionContext *exe_ctx_ptr, const SymbolContext *sc_ptr)
Definition: Target.cpp:2452
lldb_private::Target::m_scratch_type_system_map
TypeSystemMap m_scratch_type_system_map
Definition: Target.h:1521
lldb_private::eLoadScriptFromSymFileTrue
@ eLoadScriptFromSymFileTrue
Definition: Target.h:51
lldb_private::Target::ReadMemoryFromFileCache
size_t ReadMemoryFromFileCache(const Address &addr, void *dst, size_t dst_len, Status &error)
Definition: Target.cpp:1703
lldb_private::Target::DummySignalValues::notify
LazyBool notify
Definition: Target.h:1432
lldb_private::Stream
Definition: Stream.h:28
lldb_private::Target::GetWatchpointList
WatchpointList & GetWatchpointList()
Definition: Target.h:743
lldb_private::Args
Definition: Args.h:33
lldb_private::Target::CreateBreakpoint
lldb::BreakpointSP CreateBreakpoint(const FileSpecList *containingModules, const FileSpec &file, uint32_t line_no, uint32_t column, lldb::addr_t offset, LazyBool check_inlines, LazyBool skip_prologue, bool internal, bool request_hardware, LazyBool move_to_nearest_code)
Definition: Target.cpp:350
lldb::addr_t
uint64_t addr_t
Definition: lldb-types.h:83
lldb_private::EvaluateExpressionOptions::m_one_thread_timeout
Timeout< std::micro > m_one_thread_timeout
Definition: Target.h:462
lldb_private::EvaluateExpressionOptions::m_generate_debug_info
bool m_generate_debug_info
Definition: Target.h:451
lldb_private::StackFrameRecognizerManager
Class that provides a registry of known stack frame recognizers.
Definition: StackFrameRecognizer.h:101
lldb_private::LazyBool
LazyBool
Definition: lldb-private-enumerations.h:115
lldb_private::Target::GetBreakpointList
BreakpointList & GetBreakpointList(bool internal=false)
Definition: Target.cpp:308
lldb_private::eExecutionPolicyAlways
@ eExecutionPolicyAlways
Definition: lldb-private-enumerations.h:147
lldb_private::EvaluateExpressionOptions::GetAutoApplyFixIts
bool GetAutoApplyFixIts() const
Definition: Target.h:426
lldb_private::Target::SerializeBreakpointsToFile
Status SerializeBreakpointsToFile(const FileSpec &file, const BreakpointIDList &bp_ids, bool append)
Definition: Target.cpp:1005
lldb_private::Target::GetDebugger
Debugger & GetDebugger()
Definition: Target.h:1025
lldb_private::Target::FinalizeFileActions
void FinalizeFileActions(ProcessLaunchInfo &info)
Definition: Target.cpp:3286
lldb_private::Target::DidExec
void DidExec()
Called as the last function in Process::DidExec().
Definition: Target.cpp:1405
lldb_private::Target::m_source_manager_up
lldb::SourceManagerUP m_source_manager_up
Definition: Target.h:1526
lldb_private::EvaluateExpressionOptions::m_stop_others
bool m_stop_others
Definition: Target.h:447
lldb_private::Target::ResolveLoadAddress
bool ResolveLoadAddress(lldb::addr_t load_addr, Address &so_addr, uint32_t stop_id=SectionLoadHistory::eStopIDNow)
Definition: Target.cpp:2906
lldb_private::SymbolContext
Definition: SymbolContext.h:33
lldb_private::Target
Definition: Target.h:473
lldb_private::Target::StopHook::m_active
bool m_active
Definition: Target.h:1293
lldb_private::TargetProperties::GetMaximumNumberOfChildrenToDisplay
uint32_t GetMaximumNumberOfChildrenToDisplay() const
Definition: Target.cpp:4393
lldb_private::EvaluateExpressionOptions::SetRetriesWithFixIts
void SetRetriesWithFixIts(uint64_t number_of_retries)
Definition: Target.h:428
lldb_private::EvaluateExpressionOptions::GetREPLEnabled
bool GetREPLEnabled() const
Definition: Target.h:387
lldb_private::Target::GetFunctionCallerForLanguage
FunctionCaller * GetFunctionCallerForLanguage(lldb::LanguageType language, const CompilerType &return_type, const Address &function_address, const ValueList &arg_value_list, const char *name, Status &error)
Definition: Target.cpp:2381
lldb_private::TargetProperties::GetStandardErrorPath
FileSpec GetStandardErrorPath() const
Definition: Target.cpp:4440
lldb_private::Target::m_debugger
Debugger & m_debugger
Definition: Target.h:1493
lldb_private::Target::StopHookCommandLine::GetSubclassDescription
void GetSubclassDescription(Stream *s, lldb::DescriptionLevel level) const override
Definition: Target.cpp:3568
lldb_private::Target::CreateProcess
const lldb::ProcessSP & CreateProcess(lldb::ListenerSP listener_sp, llvm::StringRef plugin_name, const FileSpec *crash_file, bool can_connect)
Definition: Target.cpp:205
lldb_private::EvaluateExpressionOptions::SetResultIsInternal
void SetResultIsInternal(bool b)
Definition: Target.h:420
lldb_private::Target::GetImages
const ModuleList & GetImages() const
Get accessor for the images for this process.
Definition: Target.h:947
lldb_private::AddressClass::eInvalid
@ eInvalid
lldb_private::Target::m_private_mutex
std::recursive_mutex m_private_mutex
When the private state thread calls SB API's - usually because it is running OS plugin or Python Thre...
Definition: Target.h:1502
lldb_private::Target::StopHook::StopHookResult::RequestContinue
@ RequestContinue
lldb_private::Target::GetPersistentVariable
lldb::ExpressionVariableSP GetPersistentVariable(ConstString name)
Definition: Target.cpp:2530
lldb_private::TargetProperties::SetDisableSTDIO
void SetDisableSTDIO(bool b)
Definition: Target.cpp:4132
lldb_private::EvaluateExpressionOptions::default_timeout
static constexpr std::chrono::milliseconds default_timeout
Definition: Target.h:291
lldb_private::TargetProperties::CheckJITObjectsDir
void CheckJITObjectsDir()
Definition: Target.cpp:4348
lldb_private::EvaluateExpressionOptions::GetGenerateDebugInfo
bool GetGenerateDebugInfo() const
Definition: Target.h:375
Broadcaster.h
lldb_private::EvaluateExpressionOptions::EvaluateExpressionOptions
EvaluateExpressionOptions()=default
lldb_private::Target::StopHook::m_specifier_sp
lldb::SymbolContextSpecifierSP m_specifier_sp
Definition: Target.h:1291
lldb_private::eLoadScriptFromSymFileWarn
@ eLoadScriptFromSymFileWarn
Definition: Target.h:53
lldb_private::Target::TargetEventData::GetFlavorString
static ConstString GetFlavorString()
Definition: Target.cpp:4689
lldb_private::Expression::ResultType
ResultType
Definition: Expression.h:35
lldb_private::TargetProperties::GetDisableSTDIO
bool GetDisableSTDIO() const
Definition: Target.cpp:4126
lldb_private::Target::GetSuppressStopHooks
bool GetSuppressStopHooks()
Definition: Target.h:1372
lldb_private::Target::IgnoreWatchpointByID
bool IgnoreWatchpointByID(lldb::watch_id_t watch_id, uint32_t ignore_count)
Definition: Target.cpp:1346
lldb_private::EvaluateExpressionOptions::m_result_is_internal
bool m_result_is_internal
Definition: Target.h:453
lldb_private::Target::Arch::Arch
Arch(const ArchSpec &spec)
Definition: Target.cpp:75
lldb_private::Properties
Definition: UserSettingsController.h:33
lldb_private::Target::GetStopHookByID
StopHookSP GetStopHookByID(lldb::user_id_t uid)
Definition: Target.cpp:2653
lldb_private::Target::StopHook::GetSubclassDescription
virtual void GetSubclassDescription(Stream *s, lldb::DescriptionLevel level) const =0
lldb_private::Target::GetPlatform
lldb::PlatformSP GetPlatform()
Definition: Target.h:1398
lldb_private::Target::eBroadcastBitWatchpointChanged
@ eBroadcastBitWatchpointChanged
Definition: Target.h:487
lldb_private::EvaluateExpressionOptions::GetUseDynamic
lldb::DynamicValueType GetUseDynamic() const
Definition: Target.h:340
BreakpointList.h
lldb_private::Target::m_next_persistent_variable_index
unsigned m_next_persistent_variable_index
Definition: Target.h:1536
lldb_private::FileSpec
Definition: FileSpec.h:56
lldb_private::Target::GetLastCreatedBreakpoint
lldb::BreakpointSP GetLastCreatedBreakpoint()
Definition: Target.h:633
lldb_private::TargetProperties::SetPreferDynamicValue
bool SetPreferDynamicValue(lldb::DynamicValueType d)
Definition: Target.cpp:4077
error
static llvm::raw_ostream & error(Stream &strm)
Definition: CommandReturnObject.cpp:17
lldb_private::EvaluateExpressionOptions::m_execution_policy
ExecutionPolicy m_execution_policy
Definition: Target.h:439
lldb_private::Target::GetSearchFilterForModule
lldb::SearchFilterSP GetSearchFilterForModule(const FileSpec *containingModule)
Definition: Target.cpp:527
lldb_private::TargetProperties::DisableASLRValueChangedCallback
void DisableASLRValueChangedCallback()
Definition: Target.cpp:4646
lldb_private::TargetProperties::GetPreferDynamicValue
lldb::DynamicValueType GetPreferDynamicValue() const
Definition: Target.cpp:4070
lldb_private::TargetProperties::GetArg0
llvm::StringRef GetArg0() const
Definition: Target.cpp:4154
lldb_private::Target::PrintDummySignals
void PrintDummySignals(Stream &strm, Args &signals)
Print all the signals set in this target.
Definition: Target.cpp:3459
lldb_private::Target::GetStopHookAtIndex
StopHookSP GetStopHookAtIndex(size_t index)
Definition: Target.h:1386
lldb_private::TargetExperimentalProperties
Definition: Target.h:81
lldb_private::Target::ReadCStringFromMemory
size_t ReadCStringFromMemory(const Address &addr, std::string &out_str, Status &error, bool force_live_memory=false)
Definition: Target.cpp:1856
lldb_private::Target::ReadUnsignedIntegerFromMemory
uint64_t ReadUnsignedIntegerFromMemory(const Address &addr, size_t integer_byte_size, uint64_t fail_value, Status &error, bool force_live_memory=false)
Definition: Target.cpp:2024
lldb_private::TargetProperties::GetDisplayRecognizedArguments
bool GetDisplayRecognizedArguments() const
Definition: Target.cpp:4551
lldb_private::eInlineBreakpointsNever
@ eInlineBreakpointsNever
Definition: Target.h:45
lldb_private::eImportStdModuleFalse
@ eImportStdModuleFalse
Definition: Target.h:69
lldb_private::Target::AddDummySignal
void AddDummySignal(llvm::StringRef name, LazyBool pass, LazyBool print, LazyBool stop)
Add a signal to the Target's list of stored signals/actions.
Definition: Target.cpp:3365
ModuleList.h
LLDBAssert.h
lldb_private::TargetProperties
Definition: Target.h:86
lldb_private::Target::m_arch
Arch m_arch
Definition: Target.h:1503
lldb_private::Target::m_images
ModuleList m_images
The list of images for this process (shared libraries and anything dynamically loaded).
Definition: Target.h:1504
lldb_private::TargetProperties::GetSkipPrologue
bool GetSkipPrologue() const
Definition: Target.cpp:4255
lldb_private::Target::CreateSourceRegexBreakpoint
lldb::BreakpointSP CreateSourceRegexBreakpoint(const FileSpecList *containingModules, const FileSpecList *source_file_list, const std::unordered_set< std::string > &function_names, RegularExpression source_regex, bool internal, bool request_hardware, LazyBool move_to_nearest_code)
Definition: Target.cpp:333
lldb_private::ProcessLaunchInfo
Definition: ProcessLaunchInfo.h:31
lldb_private::ModuleList
Definition: ModuleList.h:81
lldb_private::TargetProperties::DetachOnErrorValueChangedCallback
void DetachOnErrorValueChangedCallback()
Definition: Target.cpp:4639
lldb_private::EvaluateExpressionOptions::default_execution_policy
static constexpr ExecutionPolicy default_execution_policy
Definition: Target.h:296
lldb_private::SymbolContextSpecifier
Definition: SymbolContext.h:328
lldb_private::Target::CreateBreakpointsFromFile
Status CreateBreakpointsFromFile(const FileSpec &file, BreakpointIDList &new_bps)
Definition: Target.cpp:1097
lldb_private::ExecutionContextScope
Definition: ExecutionContextScope.h:32
lldb_private::Target::RemoveAllStopHooks
void RemoveAllStopHooks()
Definition: Target.cpp:2651
lldb_private::Target::GetBroadcasterClass
ConstString & GetBroadcasterClass() const override
This needs to be filled in if you are going to register the broadcaster with the broadcaster manager ...
Definition: Target.h:495
lldb_private::Target::GetAPIMutex
std::recursive_mutex & GetAPIMutex()
Definition: Target.cpp:4731
lldb_private::TargetProperties::GetDetachOnError
bool GetDetachOnError() const
Definition: Target.cpp:4115
lldb_private::Target::DummySignalValues::DummySignalValues
DummySignalValues(LazyBool pass, LazyBool notify, LazyBool stop)
Definition: Target.h:1434
lldb_private::Target::GetLastCreatedWatchpoint
lldb::WatchpointSP GetLastCreatedWatchpoint()
Definition: Target.h:739
lldb_private::eLoadDependentsNo
@ eLoadDependentsNo
Definition: Target.h:65
lldb_private::TargetProperties::SetRunArguments
void SetRunArguments(const Args &args)
Definition: Target.cpp:4171
lldb_private::Target::SetSectionLoadAddress
bool SetSectionLoadAddress(const lldb::SectionSP &section, lldb::addr_t load_addr, bool warn_multiple=false)
Definition: Target.cpp:2916
ThreadSpec.h
lldb_private::Target::EnableAllBreakpoints
void EnableAllBreakpoints(bool internal_also=false)
Definition: Target.cpp:931
lldb_private::TargetProperties::GetInlineStrategy
InlineStrategy GetInlineStrategy() const
Definition: Target.cpp:4148
lldb_private::TargetProperties::GetMaximumDepthOfChildrenToDisplay
std::pair< uint32_t, bool > GetMaximumDepthOfChildrenToDisplay() const
Get the max depth value, augmented with a bool to indicate whether the depth is the default.
Definition: Target.cpp:4400
lldb_private::Target::StopHook::GetThreadSpecifier
ThreadSpec * GetThreadSpecifier()
Definition: Target.h:1273
lldb_private::Target::Arch::GetPlugin
Architecture * GetPlugin() const
Definition: Target.h:1485
lldb_private::EvaluateExpressionOptions::m_cancel_callback_baton
void * m_cancel_callback_baton
Definition: Target.h:464
lldb_private::StructuredData::ObjectSP
std::shared_ptr< Object > ObjectSP
Definition: StructuredData.h:59
lldb_private::eDynamicClassInfoHelperAuto
@ eDynamicClassInfoHelperAuto
Definition: Target.h:75
lldb_private::Target::DummySignalValues::DummySignalValues
DummySignalValues()=default
lldb_private::Target::StopHookCommandLine
Definition: Target.h:1299
lldb_private::Target::m_image_search_paths
PathMappingList m_image_search_paths
Definition: Target.h:1520
lldb_private::TargetProperties::RunArgsValueChangedCallback
void RunArgsValueChangedCallback()
Definition: Target.cpp:4614
lldb_private::TargetProperties::UpdateLaunchInfoFromProperties
void UpdateLaunchInfoFromProperties()
Definition: Target.cpp:4012
lldb_private::Target::ClearAllLoadedSections
void ClearAllLoadedSections()
Definition: Target.cpp:2987
lldb_private::Target::EnableAllowedBreakpoints
void EnableAllowedBreakpoints()
Definition: Target.cpp:941
lldb_private::EvaluateExpressionOptions::m_try_others
bool m_try_others
Definition: Target.h:446
lldb_private::EvaluateExpressionOptions::m_retries_with_fixits
uint64_t m_retries_with_fixits
Definition: Target.h:455
lldb_private::TypeSystemMap
Definition: TypeSystem.h:506
lldb_private::Target::GetBreakableLoadAddress
lldb::addr_t GetBreakableLoadAddress(lldb::addr_t addr)
Definition: Target.cpp:2613
lldb_private::EvaluateExpressionOptions::m_coerce_to_id
bool m_coerce_to_id
Definition: Target.h:442
lldb_private::Target::ResolveFileAddress
bool ResolveFileAddress(lldb::addr_t load_addr, Address &so_addr)
Definition: Target.cpp:2911
lldb_private::TargetProperties::SetStandardOutputPath
void SetStandardOutputPath(llvm::StringRef path)
Definition: Target.cpp:4435
lldb_private::Target::CleanupProcess
void CleanupProcess()
Definition: Target.cpp:174
lldb_private::Target::StopHookScripted::~StopHookScripted
~StopHookScripted() override=default
lldb_private::TargetProperties::GetSaveJITObjectsDir
FileSpec GetSaveJITObjectsDir() const
Definition: Target.cpp:4343
lldb_private::Target::TargetEventData::~TargetEventData
~TargetEventData() override
lldb::break_id_t
int32_t break_id_t
Definition: lldb-types.h:88
lldb_private::Target::CreateUtilityFunction
llvm::Expected< std::unique_ptr< UtilityFunction > > CreateUtilityFunction(std::string expression, std::string name, lldb::LanguageType language, ExecutionContext &exe_ctx)
Creates and installs a UtilityFunction for the given language.
Definition: Target.cpp:2405
lldb_private::Target::SetSuppresStopHooks
bool SetSuppresStopHooks(bool suppress)
Definition: Target.h:1366
lldb_private::BreakpointName::Permissions
Definition: BreakpointName.h:32
lldb_private::Target::m_process_sp
lldb::ProcessSP m_process_sp
Definition: Target.h:1518
lldb_private::Target::RunStopHooks
bool RunStopHooks()
Definition: Target.cpp:2681
lldb_private::StringList
Definition: StringList.h:26
lldb_private::Target::DeleteCurrentProcess
void DeleteCurrentProcess()
Definition: Target.cpp:189
lldb_private::ConstString
Definition: ConstString.h:40
lldb_private::Target::StopHook::StopHookKind::CommandBased
@ CommandBased
lldb_private::Target::StopHook::StopHookResult::AlreadyContinued
@ AlreadyContinued
lldb_private::TargetProperties::SetStandardErrorPath
void SetStandardErrorPath(llvm::StringRef path)
Definition: Target.cpp:4445
lldb_private::Target::CreateAddressInModuleBreakpoint
lldb::BreakpointSP CreateAddressInModuleBreakpoint(lldb::addr_t file_addr, bool internal, const FileSpec *file_spec, bool request_hardware)
Definition: Target.cpp:436
lldb_private::BreakpointOptions
Definition: BreakpointOptions.h:27
lldb_private::Target::GetCallableLoadAddress
lldb::addr_t GetCallableLoadAddress(lldb::addr_t load_addr, AddressClass addr_class=AddressClass::eInvalid) const
Get load_addr as a callable code load address for this target.
Definition: Target.cpp:2598
lldb_private::Target::DisableAllWatchpoints
bool DisableAllWatchpoints(bool end_to_end=true)
Definition: Target.cpp:1193
lldb_private::Target::GetImages
ModuleList & GetImages()
Definition: Target.h:949
lldb_private::EvaluateExpressionOptions::SetColorizeErrors
void SetColorizeErrors(bool b)
Definition: Target.h:381
lldb_private::EvaluateExpressionOptions::m_ansi_color_errors
bool m_ansi_color_errors
Definition: Target.h:452
lldb_private::Target::m_is_dummy_target
bool m_is_dummy_target
Used to not run stop hooks for expressions.
Definition: Target.h:1535
lldb_private::Target::AddNameToBreakpoint
void AddNameToBreakpoint(BreakpointID &id, const char *name, Status &error)
Definition: Target.cpp:684
lldb_private::Target::NotifyModuleUpdated
void NotifyModuleUpdated(const ModuleList &module_list, const lldb::ModuleSP &old_module_sp, const lldb::ModuleSP &new_module_sp) override
Definition: Target.cpp:1612
lldb_private::Target::Dump
void Dump(Stream *s, lldb::DescriptionLevel description_level)
Dump a description of this object to a Stream.
Definition: Target.cpp:155
lldb_private::Target::GetABIName
llvm::StringRef GetABIName() const
Returns the name of the target's ABI plugin.
Definition: Target.cpp:297
lldb_private::EvaluateExpressionOptions::SetTryAllThreads
void SetTryAllThreads(bool try_others=true)
Definition: Target.h:361
lldb_private::EvaluateExpressionOptions::m_keep_in_memory
bool m_keep_in_memory
Definition: Target.h:445
lldb_private::StructuredDataImpl
Definition: StructuredDataImpl.h:26
lldb_private::TargetProperties::GetRunArguments
bool GetRunArguments(Args &args) const
Definition: Target.cpp:4166
lldb_private::Target::m_last_created_watchpoint
lldb::WatchpointSP m_last_created_watchpoint
Definition: Target.h:1514
lldb_private::Target::m_internal_breakpoint_list
BreakpointList m_internal_breakpoint_list
Definition: Target.h:1508
lldb_private::Target::StopHookSP
std::shared_ptr< StopHook > StopHookSP
Definition: Target.h:1350
lldb_private::Target::NotifyModuleAdded
void NotifyModuleAdded(const ModuleList &module_list, const lldb::ModuleSP &module_sp) override
Implementing of ModuleList::Notifier.
Definition: Target.cpp:1592
lldb_private::Target::ApplyNameToBreakpoints
void ApplyNameToBreakpoints(BreakpointName &bp_name)
Definition: Target.cpp:760
lldb::ExpressionEvaluationPhase
ExpressionEvaluationPhase
Expression Evaluation Stages.
Definition: lldb-enumerations.h:962
lldb_private::TargetProperties::Arg0ValueChangedCallback
void Arg0ValueChangedCallback()
Definition: Target.cpp:4610
lldb_private::Target::StopHook::StopHookResult::KeepStopped
@ KeepStopped
lldb_private::Target::SetArchitecture
bool SetArchitecture(const ArchSpec &arch_spec, bool set_platform=false)
Set the architecture for this target.
Definition: Target.cpp:1477
lldb_private::Target::StopHookCollection
std::map< lldb::user_id_t, StopHookSP > StopHookCollection
Definition: Target.h:1528
lldb_private::TargetProperties::GetMoveToNearestCode
bool GetMoveToNearestCode() const
Definition: Target.cpp:4064
lldb::DynamicValueType
DynamicValueType
Definition: lldb-enumerations.h:494
lldb_private::TargetProperties::GetExpressionPrefixContents
llvm::StringRef GetExpressionPrefixContents()
Definition: Target.cpp:4459
lldb_private::Debugger
Definition: Debugger.h:74
lldb_private::eLoadCWDlldbinitWarn
@ eLoadCWDlldbinitWarn
Definition: Target.h:59
lldb_private::SectionLoadList
Definition: SectionLoadList.h:22
lldb_private::TargetProperties::InheritTCCValueChangedCallback
void InheritTCCValueChangedCallback()
Definition: Target.cpp:4653
lldb_private::Target::DisableAllowedBreakpoints
void DisableAllowedBreakpoints()
Definition: Target.cpp:924
lldb_private::Target::CreateTrace
llvm::Expected< lldb::TraceSP > CreateTrace()
Create a Trace object for the current target using the using the default supported tracing technology...
Definition: Target.cpp:3172
lldb_private::Target::GetPersistentExpressionStateForLanguage
PersistentExpressionState * GetPersistentExpressionStateForLanguage(lldb::LanguageType language)
Definition: Target.cpp:2344
lldb_private::Target::ProcessIsValid
bool ProcessIsValid()
Definition: Target.cpp:782
string
string(SUBSTRING ${p} 10 -1 pStripped) if($
Definition: Plugins/CMakeLists.txt:40
lldb::watch_id_t
int32_t watch_id_t
Definition: lldb-types.h:89
lldb_private::eLoadCWDlldbinitTrue
@ eLoadCWDlldbinitTrue
Definition: Target.h:57
lldb_private::TargetProperties::EnvVarsValueChangedCallback
void EnvVarsValueChangedCallback()
Definition: Target.cpp:4620
lldb_private::EvaluateExpressionOptions::SetUnwindOnError
void SetUnwindOnError(bool unwind=false)
Definition: Target.h:328
lldb_private::EvaluateExpressionOptions::SetKeepInMemory
void SetKeepInMemory(bool keep=true)
Definition: Target.h:338
lldb_private::Target::CreateWatchpoint
lldb::WatchpointSP CreateWatchpoint(lldb::addr_t addr, size_t size, const CompilerType *type, uint32_t kind, Status &error)
Definition: Target.cpp:807
TypeSystem.h
lldb_private::Target::m_breakpoint_names
BreakpointNameList m_breakpoint_names
Definition: Target.h:1510
lldb_private::Target::SetTrace
void SetTrace(const lldb::TraceSP &trace_sp)
Set the Trace object containing processor trace information of this target.
Definition: Target.cpp:3168
lldb_private::EvaluateExpressionOptions::IsForUtilityExpr
bool IsForUtilityExpr() const
Definition: Target.h:434
lldb_private::TargetProperties::SetInjectLocalVariables
void SetInjectLocalVariables(ExecutionContext *exe_ctx, bool b)
Definition: Target.cpp:4038
lldb_private::Target::GetOpcodeLoadAddress
lldb::addr_t GetOpcodeLoadAddress(lldb::addr_t load_addr, AddressClass addr_class=AddressClass::eInvalid) const
Get load_addr as an opcode for this target.
Definition: Target.cpp:2606
lldb_private::Target::ReadStringFromMemory
size_t ReadStringFromMemory(const Address &addr, char *dst, size_t max_bytes, Status &error, size_t type_width, bool force_live_memory=true)
Read a NULL terminated string from memory.
Definition: Target.cpp:1946
lldb_private::TargetProperties::ErrorPathValueChangedCallback
void ErrorPathValueChangedCallback()
Definition: Target.cpp:4634
lldb_private::TargetProperties::GetDisplayRuntimeSupportValues
bool GetDisplayRuntimeSupportValues() const
Definition: Target.cpp:4541
lldb_private::ThreadSpec
Definition: ThreadSpec.h:33
lldb_private::TargetProperties::SetProcessLaunchInfo
void SetProcessLaunchInfo(const ProcessLaunchInfo &launch_info)
Definition: Target.cpp:4565
lldb_private::Target::m_mutex
std::recursive_mutex m_mutex
An API mutex that is used by the lldb::SB* classes make the SB interface thread safe.
Definition: Target.h:1495
lldb_private::EvaluateExpressionOptions::m_running_utility_expression
bool m_running_utility_expression
True if the executed code should be treated as utility code that is only used by LLDB internally.
Definition: Target.h:458
lldb_private::TargetProperties::GetEnableAutoApplyFixIts
bool GetEnableAutoApplyFixIts() const
Definition: Target.cpp:4325
lldb_private::SectionLoadHistory
Definition: SectionLoadHistory.h:19
lldb_private::ProcessAttachInfo
Definition: Process.h:113
lldb_private::Target::DummySignalValues::stop
LazyBool stop
Definition: Target.h:1433
lldb_private::Target::m_breakpoint_list
BreakpointList m_breakpoint_list
Definition: Target.h:1507
lldb_private::Target::SetExecutableModule
void SetExecutableModule(lldb::ModuleSP &module_sp, LoadDependentFiles load_dependent_files=eLoadDependentsDefault)
Set the main executable module.
Definition: Target.cpp:1411
lldb_private::Target::ResetSignalFromDummy
static bool ResetSignalFromDummy(lldb::UnixSignalsSP signals_sp, const DummySignalElement &element)
Definition: Target.cpp:3407
lldb_private::TargetProperties::GetProcessLaunchInfo
const ProcessLaunchInfo & GetProcessLaunchInfo() const
Definition: Target.cpp:4561
lldb_private::Target::TargetEventData::m_module_list
ModuleList m_module_list
Definition: Target.h:530
lldb_private::eLoadDependentsYes
@ eLoadDependentsYes
Definition: Target.h:64
lldb_private::eDynamicClassInfoHelperCopyRealizedClassList
@ eDynamicClassInfoHelperCopyRealizedClassList
Definition: Target.h:77
lldb_private::TargetProperties::GetDebugFileSearchPaths
FileSpecList GetDebugFileSearchPaths()
Definition: Target.cpp:4288
lldb_private::Target::eBroadcastBitModulesUnloaded
@ eBroadcastBitModulesUnloaded
Definition: Target.h:486
lldb_private::EvaluateExpressionOptions::SetIgnoreBreakpoints
void SetIgnoreBreakpoints(bool ignore=false)
Definition: Target.h:332
lldb_private::TargetExperimentalProperties::TargetExperimentalProperties
TargetExperimentalProperties()
Definition: Target.cpp:3941
lldb_private::Target::GetStaticBroadcasterClass
static ConstString & GetStaticBroadcasterClass()
Definition: Target.cpp:85
lldb_private::Target::Attach
Status Attach(ProcessAttachInfo &attach_info, Stream *stream)
Definition: Target.cpp:3203
lldb_private::Target::SettingsTerminate
static void SettingsTerminate()
Definition: Target.cpp:2431
lldb_private::Target::GetProcessSP
const lldb::ProcessSP & GetProcessSP() const
Definition: Target.cpp:217
lldb_private::TargetProperties::GetDebugUtilityExpression
bool GetDebugUtilityExpression() const
Definition: Target.cpp:4667
lldb_private::Target::DisableWatchpointByID
bool DisableWatchpointByID(lldb::watch_id_t watch_id)
Definition: Target.cpp:1292
lldb_private::Target::Launch
Status Launch(ProcessLaunchInfo &launch_info, Stream *stream)
Definition: Target.cpp:2989
lldb_private::Target::GetTraceOrCreate
llvm::Expected< lldb::TraceSP > GetTraceOrCreate()
If a Trace object is present, this returns it, otherwise a new Trace is created with Trace::CreateTra...
Definition: Target.cpp:3197
lldb_private::Target::GetArchitecturePlugin
Architecture * GetArchitecturePlugin() const
Definition: Target.h:1023
lldb_private::Target::GetDefaultExecutableSearchPaths
static FileSpecList GetDefaultExecutableSearchPaths()
Definition: Target.cpp:2433
lldb_private::SectionLoadHistory::GetCurrentSectionLoadList
SectionLoadList & GetCurrentSectionLoadList()
Definition: SectionLoadHistory.cpp:95
lldb_private::Target::StopHook::SetSpecifier
void SetSpecifier(SymbolContextSpecifier *specifier)
Definition: Target.cpp:3502
lldb_private::ModuleSpec
Definition: ModuleSpec.h:27
lldb_private::Target::GetArchitecture
const ArchSpec & GetArchitecture() const
Definition: Target.h:989
lldb_private::Target::SetSectionUnloaded
bool SetSectionUnloaded(const lldb::SectionSP &section_sp)
Definition: Target.cpp:2965
lldb_private::EvaluateExpressionOptions::SetOneThreadTimeout
void SetOneThreadTimeout(const Timeout< std::micro > &timeout)
Definition: Target.h:355
lldb_private::Target::GetStopHookSize
size_t GetStopHookSize()
lldb_private::Status
Definition: Status.h:44
lldb_private::EvaluateExpressionOptions::m_trap_exceptions
bool m_trap_exceptions
Definition: Target.h:449
lldb_private::WatchpointList
Definition: WatchpointList.h:27
lldb_private::ValueObject
ValueObject:
Definition: ValueObject.h:105
lldb_private::TargetProperties::GetEnvironment
Environment GetEnvironment() const
Definition: Target.cpp:4206
lldb_private::EvaluateExpressionOptions::GetLanguage
lldb::LanguageType GetLanguage() const
Definition: Target.h:307
lldb_private::Target::CreateStopHook
StopHookSP CreateStopHook(StopHook::StopHookKind kind)
Add an empty stop hook to the Target's stop hook list, and returns a shared pointer to it in new_hook...
Definition: Target.cpp:2624
lldb_private::Timeout< std::micro >
lldb_private::TargetProperties::GetLoadCWDlldbinitFile
LoadCWDlldbinitFile GetLoadCWDlldbinitFile() const
Definition: Target.cpp:4511
lldb_private::Target::GetDefaultArchitecture
static ArchSpec GetDefaultArchitecture()
Definition: Target.cpp:2441
lldb_private::Target::ReadMemory
size_t ReadMemory(const Address &addr, void *dst, size_t dst_len, Status &error, bool force_live_memory=false, lldb::addr_t *load_addr_ptr=nullptr)
Definition: Target.cpp:1735
lldb_private::Target::Install
Status Install(ProcessLaunchInfo *launch_info)
Definition: Target.cpp:2858
lldb_private::Target::IsValid
bool IsValid()
Definition: Target.h:617
lldb_private::Target::AddBreakpointName
void AddBreakpointName(BreakpointName *bp_name)
Definition: Target.cpp:710
lldb_private::EvaluateExpressionOptions::m_pound_line_line
uint32_t m_pound_line_line
Definition: Target.h:469
lldb_private::EvaluateExpressionOptions::m_use_dynamic
lldb::DynamicValueType m_use_dynamic
Definition: Target.h:460
lldb::eLanguageTypeUnknown
@ eLanguageTypeUnknown
Unknown or invalid language value.
Definition: lldb-enumerations.h:437
lldb_private::Target::eBroadcastBitBreakpointChanged
@ eBroadcastBitBreakpointChanged
Definition: Target.h:484
lldb_private::Target::UpdateSignalsFromDummy
void UpdateSignalsFromDummy(lldb::UnixSignalsSP signals_sp, lldb::StreamSP warning_stream_sp)
Updates the signals in signals_sp using the stored dummy signals.
Definition: Target.cpp:3422
lldb_private::TargetProperties::GetEnableAutoImportClangModules
bool GetEnableAutoImportClangModules() const
Definition: Target.cpp:4306
lldb_private::Target::SetREPL
void SetREPL(lldb::LanguageType language, lldb::REPLSP repl_sp)
Definition: Target.cpp:269
lldb_private::Target::GetREPL
lldb::REPLSP GetREPL(Status &err, lldb::LanguageType language, const char *repl_options, bool can_create)
Definition: Target.cpp:219
uint32_t
lldb_private::Target::ImageSearchPathsChanged
static void ImageSearchPathsChanged(const PathMappingList &path_list, void *baton)
Definition: Target.cpp:2278
lldb_private::Target::CalculateExecutionContext
void CalculateExecutionContext(ExecutionContext &exe_ctx) override
Reconstruct the object's execution context into sc.
Definition: Target.cpp:2269
lldb_private::EvaluateExpressionOptions::GetStopOthers
bool GetStopOthers() const
Definition: Target.h:363
lldb_private::Target::GetStatistics
TargetStats & GetStatistics()
Definition: Target.h:1567
lldb_private::EvaluateExpressionOptions::SetUseDynamic
void SetUseDynamic(lldb::DynamicValueType dynamic=lldb::eDynamicCanRunTarget)
Definition: Target.h:343
lldb_private::PathMappingList
Definition: PathMappingList.h:19
UserSettingsController.h
lldb_private::EvaluateExpressionOptions::SetCoerceToId
void SetCoerceToId(bool coerce=true)
Definition: Target.h:324
lldb_private::Target::RemoveAllBreakpoints
void RemoveAllBreakpoints(bool internal_also=false)
Definition: Target.cpp:902
lldb_private::TargetProperties::m_target
Target * m_target
Definition: Target.h:278
lldb_private::Address
Definition: Address.h:59
lldb_private::Target::GetPersistentSymbol
lldb::addr_t GetPersistentSymbol(ConstString name)
Definition: Target.cpp:2546
lldb_private::Target::ModulesDidLoad
void ModulesDidLoad(ModuleList &module_list)
Definition: Target.cpp:1628
lldb_private::eInlineBreakpointsAlways
@ eInlineBreakpointsAlways
Definition: Target.h:47
lldb_private::TargetProperties::AppendExecutableSearchPaths
void AppendExecutableSearchPaths(const FileSpec &)
Definition: Target.cpp:4270
lldb_private::Target::EvaluateExpression
lldb::ExpressionResults EvaluateExpression(llvm::StringRef expression, ExecutionContextScope *exe_scope, lldb::ValueObjectSP &result_valobj_sp, const EvaluateExpressionOptions &options=EvaluateExpressionOptions(), std::string *fixed_expression=nullptr, ValueObject *ctx_obj=nullptr)
Definition: Target.cpp:2466
lldb_private::SectionLoadHistory::eStopIDNow
@ eStopIDNow
Definition: SectionLoadHistory.h:24
lldb_private::Target::StopHook
Definition: Target.h:1240
lldb_private::EvaluateExpressionOptions::m_prefix
std::string m_prefix
Definition: Target.h:441
lldb_private::TargetProperties::GetImportStdModule
ImportStdModule GetImportStdModule() const
Definition: Target.cpp:4312
lldb_private::BreakpointID
Definition: BreakpointID.h:22
lldb_private::TargetProperties::GetHexImmediateStyle
Disassembler::HexImmediateStyle GetHexImmediateStyle() const
Definition: Target.cpp:4517
lldb_private::TargetProperties::m_launch_info
ProcessLaunchInfo m_launch_info
Definition: Target.h:276
lldb_private::EvaluateExpressionOptions::m_debug
bool m_debug
Definition: Target.h:448
lldb_private::Target::GetSearchFilterForModuleAndCUList
lldb::SearchFilterSP GetSearchFilterForModuleAndCUList(const FileSpecList *containingModules, const FileSpecList *containingSourceFiles)
Definition: Target.cpp:562
lldb_private::Target::m_stop_hooks
StopHookCollection m_stop_hooks
Definition: Target.h:1529
lldb_private::Disassembler::HexImmediateStyle
HexImmediateStyle
Definition: Disassembler.h:381
ExecutionContextScope.h
lldb_private::EvaluateExpressionOptions::m_language
lldb::LanguageType m_language
Definition: Target.h:440
lldb_private::Target::TargetEventData::operator=
const TargetEventData & operator=(const TargetEventData &)=delete
lldb_private::Target::StopHook::IsActive
bool IsActive()
Definition: Target.h:1275
lldb_private::Target::StopHookScripted::StopHookScripted
StopHookScripted(lldb::TargetSP target_sp, lldb::user_id_t uid)
Use CreateStopHook to make a new empty stop hook.
Definition: Target.h:1345
lldb_private::Target::GetSearchFilterForModuleList
lldb::SearchFilterSP GetSearchFilterForModuleList(const FileSpecList *containingModuleList)
Definition: Target.cpp:545
lldb_private::Target::TargetEventData::GetModuleList
const ModuleList & GetModuleList() const
Definition: Target.h:526
ArchSpec.h
lldb_private::Target::IsDummyTarget
bool IsDummyTarget() const
Definition: Target.h:550
lldb_private::Target::ClearAllWatchpointHitCounts
bool ClearAllWatchpointHitCounts()
Definition: Target.cpp:1246
lldb_private::TargetProperties::GetBreakpointsConsultPlatformAvoidList
bool GetBreakpointsConsultPlatformAvoidList()
Definition: Target.cpp:4480
lldb_private::Environment
Definition: Environment.h:18
lldb_private::EvaluateExpressionOptions::GetTryAllThreads
bool GetTryAllThreads() const
Definition: Target.h:359
Timeout.h
lldb_private::eLoadCWDlldbinitFalse
@ eLoadCWDlldbinitFalse
Definition: Target.h:58
lldb_private::EvaluateExpressionOptions::SetGenerateDebugInfo
void SetGenerateDebugInfo(bool b)
Definition: Target.h:377
lldb_private::Target::StopHookScripted::m_implementation_sp
StructuredData::GenericSP m_implementation_sp
This holds the python callback object.
Definition: Target.h:1340
lldb_private::Target::StopHook::ExecutionContextPasses
bool ExecutionContextPasses(const ExecutionContext &exe_ctx)
Definition: Target.cpp:3510
lldb_private::Target::m_stop_hook_next_id
lldb::user_id_t m_stop_hook_next_id
Definition: Target.h:1530
lldb_private::Target::GetScratchTypeSystems
std::vector< TypeSystem * > GetScratchTypeSystems(bool create_on_demand=true)
Definition: Target.cpp:2315
lldb_private::TargetProperties::GetUseFastStepping
bool GetUseFastStepping() const
Definition: Target.cpp:4492
lldb_private::EvaluateExpressionOptions::DoesUnwindOnError
bool DoesUnwindOnError() const
Definition: Target.h:326
lldb_private::Target::SetAllStopHooksActiveState
void SetAllStopHooksActiveState(bool active_state)
Definition: Target.cpp:2674
SectionLoadHistory.h
lldb_private::TargetProperties::GetUserSpecifiedTrapHandlerNames
bool GetUserSpecifiedTrapHandlerNames(Args &args) const
Definition: Target.cpp:4531
lldb_private::TargetProperties::GetStandardOutputPath
FileSpec GetStandardOutputPath() const
Definition: Target.cpp:4430
lldb_private::Target::StopHookScripted::HandleStop
StopHookResult HandleStop(ExecutionContext &exc_ctx, lldb::StreamSP output) override
Definition: Target.cpp:3653
lldb_private::Target::RemoveBreakpointByID
bool RemoveBreakpointByID(lldb::break_id_t break_id)
Definition: Target.cpp:948
lldb_private::Target::TargetEventData::Dump
void Dump(Stream *s) const override
Definition: Target.cpp:4694
lldb_private::Target::GetSectionLoadList
SectionLoadList & GetSectionLoadList()
Definition: Target.h:1097
lldb_private::Target::UndoCreateStopHook
void UndoCreateStopHook(lldb::user_id_t uid)
If you tried to create a stop hook, and that failed, call this to remove the stop hook,...
Definition: Target.cpp:2639
lldb_private::Target::Arch::m_plugin_up
std::unique_ptr< Architecture > m_plugin_up
Definition: Target.h:1489
lldb_private::eExecutionPolicyOnlyWhenNeeded
@ eExecutionPolicyOnlyWhenNeeded
Definition: lldb-private-enumerations.h:145
lldb_private::Target::m_dummy_signals
llvm::StringMap< DummySignalValues > m_dummy_signals
These are used to set the signal state when you don't have a process and more usefully in the Dummy t...
Definition: Target.h:1545
lldb_private::TargetProperties::GetUseHexImmediates
bool GetUseHexImmediates() const
Definition: Target.cpp:4486
lldb_private::TargetProperties::SetInheritTCC
void SetInheritTCC(bool b)
Definition: Target.cpp:4110
StructuredDataImpl.h
lldb_private::eInlineBreakpointsHeaders
@ eInlineBreakpointsHeaders
Definition: Target.h:46
lldb_private::CompilerType
Generic representation of a type in a programming language.
Definition: CompilerType.h:33
lldb_private::Target::StopHook::~StopHook
virtual ~StopHook()=default
lldb_private::EvaluateExpressionOptions::m_ignore_breakpoints
bool m_ignore_breakpoints
Definition: Target.h:444
Statistics.h
lldb_private::Target::GetUserExpressionForLanguage
UserExpression * GetUserExpressionForLanguage(llvm::StringRef expr, llvm::StringRef prefix, lldb::LanguageType language, Expression::ResultType desired_type, const EvaluateExpressionOptions &options, ValueObject *ctx_obj, Status &error)
Definition: Target.cpp:2357
lldb_private::Target::RemoveWatchpointByID
bool RemoveWatchpointByID(lldb::watch_id_t watch_id)
Definition: Target.cpp:1330
lldb_private::Target::StopHookCommandLine::~StopHookCommandLine
~StopHookCommandLine() override=default
lldb_private::Target::GetGlobalProperties
static TargetProperties & GetGlobalProperties()
Definition: Target.cpp:2850
lldb_private::TargetProperties::SetUserSpecifiedTrapHandlerNames
void SetUserSpecifiedTrapHandlerNames(const Args &args)
Definition: Target.cpp:4536
lldb_private::TargetProperties::GetNumberOfRetriesWithFixits
uint64_t GetNumberOfRetriesWithFixits() const
Definition: Target.cpp:4331
lldb::user_id_t
uint64_t user_id_t
Definition: lldb-types.h:84
lldb_private::PersistentExpressionState
Definition: ExpressionVariable.h:203
lldb_private::Target::TargetEventData::TargetEventData
TargetEventData(const lldb::TargetSP &target_sp)
Definition: Target.cpp:4680
lldb_private::Target::TargetEventData::GetFlavor
ConstString GetFlavor() const override
Definition: Target.h:512
lldb_private::Target::StopHook::StopHookResult
StopHookResult
Definition: Target.h:1246
lldb_private::Target::CalculateTarget
lldb::TargetSP CalculateTarget() override
Definition: Target.cpp:2261
lldb_private::EvaluateExpressionOptions::GetExecutionPolicy
ExecutionPolicy GetExecutionPolicy() const
Definition: Target.h:301
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::EvaluateExpressionOptions::GetTrapExceptions
bool GetTrapExceptions() const
Definition: Target.h:383
lldb_private::eLazyBoolCalculate
@ eLazyBoolCalculate
Definition: lldb-private-enumerations.h:115
lldb_private::TargetProperties::GetLanguage
lldb::LanguageType GetLanguage() const
Definition: Target.cpp:4450
lldb_private::Target::NotifyModuleRemoved
void NotifyModuleRemoved(const ModuleList &module_list, const lldb::ModuleSP &module_sp) override
Definition: Target.cpp:1602
lldb_private::TargetProperties::GetMaxZeroPaddingInFloatFormat
uint32_t GetMaxZeroPaddingInFloatFormat() const
Definition: Target.cpp:4387
lldb_private::EvaluateExpressionOptions::GetResultIsInternal
bool GetResultIsInternal() const
Definition: Target.h:422
lldb_private::Target::Arch::GetSpec
const ArchSpec & GetSpec() const
Definition: Target.h:1484
lldb_private::Target::ReadScalarIntegerFromMemory
size_t ReadScalarIntegerFromMemory(const Address &addr, uint32_t byte_size, bool is_signed, Scalar &scalar, Status &error, bool force_live_memory=false)
Definition: Target.cpp:1995
lldb_private::TargetProperties::GetMaximumMemReadSize
uint32_t GetMaximumMemReadSize() const
Definition: Target.cpp:4414
lldb::eDynamicCanRunTarget
@ eDynamicCanRunTarget
Definition: lldb-enumerations.h:496
lldb_private::TargetProperties::GetEnableNotifyAboutFixIts
bool GetEnableNotifyAboutFixIts() const
Definition: Target.cpp:4337
lldb_private::Target::StopHookCommandLine::GetCommands
StringList & GetCommands()
Definition: Target.h:1303
lldb_private::Target::Arch
Definition: Target.h:1479
lldb_private::Target::GetTrace
lldb::TraceSP GetTrace()
Get the Trace object containing processor trace information of this target.
Definition: Target.cpp:3170
lldb_private::Target::m_search_filter_sp
lldb::SearchFilterSP m_search_filter_sp
Definition: Target.h:1519
lldb_private::EvaluateExpressionOptions::InvokeCancelCallback
bool InvokeCancelCallback(lldb::ExpressionEvaluationPhase phase) const
Definition: Target.h:396
lldb_private::EvaluateExpressionOptions::SetDebug
void SetDebug(bool b)
Definition: Target.h:369
lldb_private::Target::LoadScriptingResources
bool LoadScriptingResources(std::list< Status > &errors, Stream *feedback_stream=nullptr, bool continue_on_error=true)
Definition: Target.h:923
lldb_private::Target::TargetEventData::m_target_sp
lldb::TargetSP m_target_sp
Definition: Target.h:529
lldb_private::Target::StopHook::GetSpecifier
SymbolContextSpecifier * GetSpecifier()
Definition: Target.h:1258
lldb_private::Target::TargetEventData::GetModuleListFromEvent
static ModuleList GetModuleListFromEvent(const Event *event_ptr)
Definition: Target.cpp:4723
lldb_private::Target::NotifyModulesRemoved
void NotifyModulesRemoved(lldb_private::ModuleList &module_list) override
Definition: Target.cpp:1624
lldb_private::Target::IgnoreAllWatchpoints
bool IgnoreAllWatchpoints(uint32_t ignore_count)
Definition: Target.cpp:1275
lldb_private::Target::~Target
~Target() override
Definition: Target.cpp:125
lldb_private::TargetProperties::GetSourcePathMap
PathMappingList & GetSourcePathMap() const
Definition: Target.cpp:4261
lldb_private::TargetProperties::SetDefaultArchitecture
void SetDefaultArchitecture(const ArchSpec &arch)
Definition: Target.cpp:4057
lldb_private::Target::StopHook::SetIsActive
void SetIsActive(bool is_active)
Definition: Target.h:1277
lldb_private::TargetProperties::GetDisableASLR
bool GetDisableASLR() const
Definition: Target.cpp:4093
lldb_private::Target::CreateScriptedBreakpoint
lldb::BreakpointSP CreateScriptedBreakpoint(const llvm::StringRef class_name, const FileSpecList *containingModules, const FileSpecList *containingSourceFiles, bool internal, bool request_hardware, StructuredData::ObjectSP extra_args_sp, Status *creation_error=nullptr)
Definition: Target.cpp:616
lldb_private::Target::GetDefaultDebugFileSearchPaths
static FileSpecList GetDefaultDebugFileSearchPaths()
Definition: Target.cpp:2437
lldb_private::Target::RemoveStopHookByID
bool RemoveStopHookByID(lldb::user_id_t uid)
Definition: Target.cpp:2646
lldb_private::EvaluateExpressionOptions::m_auto_apply_fixits
bool m_auto_apply_fixits
Definition: Target.h:454
lldb_private::EvaluateExpressionOptions::SetStopOthers
void SetStopOthers(bool stop_others=true)
Definition: Target.h:365
lldb_private::Target::GetBreakpointByID
lldb::BreakpointSP GetBreakpointByID(lldb::break_id_t break_id)
Definition: Target.cpp:322
lldb_private::Target::GetSourceManager
SourceManager & GetSourceManager()
Definition: Target.cpp:2618
lldb_private::Target::StopHook::GetDescription
void GetDescription(Stream *s, lldb::DescriptionLevel level) const
Definition: Target.cpp:3526
lldb_private::Target::ModulesDidUnload
void ModulesDidUnload(ModuleList &module_list, bool delete_locations)
Definition: Target.cpp:1660
lldb_private::Target::SetPlatform
void SetPlatform(const lldb::PlatformSP &platform_sp)
Definition: Target.h:1400
lldb_private::Target::EnableAllWatchpoints
bool EnableAllWatchpoints(bool end_to_end=true)
Definition: Target.cpp:1220
lldb_private::EvaluateExpressionOptions::m_timeout
Timeout< std::micro > m_timeout
Definition: Target.h:461
lldb_private::Target::SetDefaultArchitecture
static void SetDefaultArchitecture(const ArchSpec &arch)
Definition: Target.cpp:2445
lldb_private::TargetProperties::SetPreloadSymbols
void SetPreloadSymbols(bool b)
Definition: Target.cpp:4088
lldb_private::TargetProperties::TargetProperties
TargetProperties(Target *target)
Definition: Target.cpp:3948
lldb_private::Target::EnableBreakpointByID
bool EnableBreakpointByID(lldb::break_id_t break_id)
Definition: Target.cpp:986
lldb_private::Target::StopHookScripted::GetSubclassDescription
void GetSubclassDescription(Stream *s, lldb::DescriptionLevel level) const override
Definition: Target.cpp:3670
lldb_private::Target::TargetEventData
Definition: Target.h:501
Expression.h
lldb_private::EvaluateExpressionOptions::GetRetriesWithFixIts
uint64_t GetRetriesWithFixIts() const
Definition: Target.h:432
lldb_private::Target::CreateFuncRegexBreakpoint
lldb::BreakpointSP CreateFuncRegexBreakpoint(const FileSpecList *containingModules, const FileSpecList *containingSourceFiles, RegularExpression func_regexp, lldb::LanguageType requested_language, LazyBool skip_prologue, bool internal, bool request_hardware)
Definition: Target.cpp:582
lldb_private::GetDynamicValueTypes
OptionEnumValues GetDynamicValueTypes()
Definition: Target.cpp:3731
WatchpointList.h
lldb_private::Broadcaster
Definition: Broadcaster.h:242
lldb_private::LoadCWDlldbinitFile
LoadCWDlldbinitFile
Definition: Target.h:56
PathMappingList.h
lldb_private::ImportStdModule
ImportStdModule
Definition: Target.h:68
lldb_private::Target::eBroadcastBitSymbolsLoaded
@ eBroadcastBitSymbolsLoaded
Definition: Target.h:488
lldb_private::Target::StopHook::SetThreadSpecifier
void SetThreadSpecifier(ThreadSpec *specifier)
Definition: Target.cpp:3506
lldb_private::TargetProperties::GetDisassemblyFlavor
const char * GetDisassemblyFlavor() const
Definition: Target.cpp:4137
lldb_private::TargetProperties::GetDefaultArchitecture
ArchSpec GetDefaultArchitecture() const
Definition: Target.cpp:4049
lldb_private::Target::EnableWatchpointByID
bool EnableWatchpointByID(lldb::watch_id_t watch_id)
Definition: Target.cpp:1311
lldb_private::Target::SettingsInitialize
static void SettingsInitialize()
Definition: Target.cpp:2429
lldb_private::TargetProperties::GetClangModuleSearchPaths
FileSpecList GetClangModuleSearchPaths()
Definition: Target.cpp:4297
lldb_private::EvaluateExpressionOptions::SetPrefix
void SetPrefix(const char *prefix)
Definition: Target.h:317
lldb_private::Target::Target
Target(Debugger &debugger, const ArchSpec &target_arch, const lldb::PlatformSP &platform_sp, bool is_dummy_target)
Construct with optional file and arch.
Definition: Target.cpp:90
lldb_private::Target::StopHookScripted::SetScriptCallback
Status SetScriptCallback(std::string class_name, StructuredData::ObjectSP extra_args_sp)
Definition: Target.cpp:3632
lldb_private::Target::FindBreakpointName
BreakpointName * FindBreakpointName(ConstString name, bool can_create, Status &error)
Definition: Target.cpp:714
lldb_private::Target::eBroadcastBitModulesLoaded
@ eBroadcastBitModulesLoaded
Definition: Target.h:485
lldb_private::Target::m_frame_recognizer_manager_up
lldb::StackFrameRecognizerManagerUP m_frame_recognizer_manager_up
Stores the frame recognizers of this target.
Definition: Target.h:1541
lldb_private::TargetProperties::GetAutoInstallMainExecutable
bool GetAutoInstallMainExecutable() const
Definition: Target.cpp:4604
lldb_private::Target::StopHookScripted::m_class_name
std::string m_class_name
Definition: Target.h:1335
lldb_private::Target::ReportStatistics
llvm::json::Value ReportStatistics()
Get metrics associated with this target in JSON format.
Definition: Target.cpp:4739
lldb_private::EvaluateExpressionOptions::GetDebug
bool GetDebug() const
Definition: Target.h:367
lldb_private::Target::CalculateStackFrame
lldb::StackFrameSP CalculateStackFrame() override
Definition: Target.cpp:2267
lldb_private::Target::TargetEventData::GetTargetFromEvent
static lldb::TargetSP GetTargetFromEvent(const Event *event_ptr)
Definition: Target.cpp:4714
lldb_private::EvaluateExpressionOptions::GetPoundLineFilePath
const char * GetPoundLineFilePath() const
Definition: Target.h:414
lldb_private::Target::GetNumStopHooks
size_t GetNumStopHooks() const
Definition: Target.h:1384
lldb_private::BreakpointIDList
Definition: BreakpointIDList.h:25
lldb_private::EvaluateExpressionOptions::GetPoundLineLine
uint32_t GetPoundLineLine() const
Definition: Target.h:418
lldb_private::Target::m_section_load_history
SectionLoadHistory m_section_load_history
Definition: Target.h:1506
lldb_private::TargetProperties::GetInheritedEnvironment
Environment GetInheritedEnvironment() const
Definition: Target.cpp:4210
lldb_private::DynamicClassInfoHelper
DynamicClassInfoHelper
Definition: Target.h:74
lldb_private::TargetProperties::GetExecutableSearchPaths
FileSpecList GetExecutableSearchPaths()
Definition: Target.cpp:4279
lldb_private::TargetProperties::SetEnvironment
void SetEnvironment(Environment env)
Definition: Target.cpp:4249
lldb_private::TargetProperties::SetDetachOnError
void SetDetachOnError(bool b)
Definition: Target.cpp:4121
lldb_private::ModuleList::Notifier
Definition: ModuleList.h:83
lldb::DescriptionLevel
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
Definition: lldb-enumerations.h:207
lldb_private::Target::Arch::m_spec
ArchSpec m_spec
Definition: Target.h:1488
lldb_private::SourceManager
Definition: SourceManager.h:31
lldb_private::EvaluateExpressionOptions::GetOneThreadTimeout
const Timeout< std::micro > & GetOneThreadTimeout() const
Definition: Target.h:351
lldb_private::Target::RemoveAllWatchpoints
bool RemoveAllWatchpoints(bool end_to_end=true)
Definition: Target.cpp:1164
lldb_private::EvaluateExpressionOptions::m_pound_line_file
std::string m_pound_line_file
Definition: Target.h:468
lldb_private::EvaluateExpressionOptions::m_unwind_on_error
bool m_unwind_on_error
Definition: Target.h:443
lldb_private::InlineStrategy
InlineStrategy
Definition: Target.h:44
lldb_private::Target::RemoveAllowedBreakpoints
void RemoveAllowedBreakpoints()
Definition: Target.cpp:893
lldb_private::Target::StopHook::StopHookKind
StopHookKind
Definition: Target.h:1245
lldb_private::Target::UpdateSignalFromDummy
static bool UpdateSignalFromDummy(lldb::UnixSignalsSP signals_sp, const DummySignalElement &element)
Definition: Target.cpp:3380
lldb_private::Target::MergeArchitecture
bool MergeArchitecture(const ArchSpec &arch_spec)
Definition: Target.cpp:1565
lldb_private::FunctionCaller
Definition: FunctionCaller.h:56
lldb_private::LoadScriptFromSymFile
LoadScriptFromSymFile
Definition: Target.h:50
lldb_private::Target::SetStopHookActiveStateByID
bool SetStopHookActiveStateByID(lldb::user_id_t uid, bool active_state)
Definition: Target.cpp:2663
lldb_private::Target::m_trace_sp
lldb::TraceSP m_trace_sp
An optional lldb_private::Trace object containing processor trace information of this target.
Definition: Target.h:1539
lldb_private::EvaluateExpressionOptions::SetAutoApplyFixIts
void SetAutoApplyFixIts(bool b)
Definition: Target.h:424
lldb_private::Target::ReadPointerFromMemory
bool ReadPointerFromMemory(const Address &addr, Status &error, Address &pointer_addr, bool force_live_memory=false)
Definition: Target.cpp:2035