Hello,
The SBFileSpec class of APIs can be used to read files on the local
file system right ? I want to know if it can be used for reading files on
the remote file system ? or do we need to use some other API ?
BR,
A Ravi Theja
___
lldb-dev mail
LLDB supports adding data formatters without modifying the source code and
I would strongly prefer to go that way as we don't want each user of LLDB
to start adding data formatters to their own custom types. We have a pretty
detailed (but possible a bit outdated) description about how they work and
I don't think Enrico was suggesting that we maintain a bunch of third party
data formatters in the lldb source base. He was giving C++ examples (using the
lldb_private API's) because the STL formatters are in C++, so that's what he
had on hand to demonstrate the kinds of algorithms you would us
The SBPlatform that you can get from your SBTarget is the way to do this
correctly:
SBPlatform platform = target.GetPlatform();
SBFileSpec src("/some/remote/path/to/remote/file/file.txt", false);
SBFileSpec dst("/tmp/file.txt");
SBError error = platform.Get (src, dst);
Then you can plat with "d
> On Apr 7, 2016, at 9:51 AM, Jim Ingham wrote:
>
> I don't think Enrico was suggesting that we maintain a bunch of third party
> data formatters in the lldb source base.
That depends - if this std::string implementation is part of a publicly
available STL implementation, it might make sens
> On Apr 6, 2016, at 7:31 PM, Jeffrey Tan wrote:
>
> Thanks Enrico. This is very detailed! I will take a look.
> Btw: originally, I was hoping that data formatter can be added without
> changing the source code. Like giving a xml/json format file telling lldb the
> memory layout/structure of