[Lldb-commits] [PATCH] D47302: [lldb, lldb-mi] Add method AddCurrentTargetSharedObjectPath to the SBDebugger.

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu May 24 07:40:05 PDT 2018


clayborg added a comment.

It might make sense to create a new SBTargetSettings class that has accessors. Then we can have to accessors on SBTarget:

  class SBTarget {
    static SBTargetSettings GetGlobalSettings();
    SBTargetSettings GetSettings();
  };

This allows us to expose settings in a way that would allow us to serialize the settings and then load them again later.

  class SBTargetSettings {
    // Accessors for "target...." setting
    void AppendImageSearchPath(const char *from, const char *to);
    size_t GetNumImageSearchPaths();
    const char *GetImageSearchPathAtIndex(size_t i);
    // Save and load all settings
    void Load(SBStream &s);
    void Save(SBStream &s);
  };


Repository:
  rL LLVM

https://reviews.llvm.org/D47302





More information about the lldb-commits mailing list