diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:26:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:26:05 +0000 |
commit | 14f1b3e8826ce43b978db93a62d1166055db5394 (patch) | |
tree | 0a00ad8d3498783fe0193f3b656bca17c4c8697d /source/Plugins/Process/Linux/ProcFileReader.h | |
parent | 4ee8c119c71a06dcad1e0fecc8c675e480e59337 (diff) |
Notes
Diffstat (limited to 'source/Plugins/Process/Linux/ProcFileReader.h')
-rw-r--r-- | source/Plugins/Process/Linux/ProcFileReader.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/source/Plugins/Process/Linux/ProcFileReader.h b/source/Plugins/Process/Linux/ProcFileReader.h index 7b3812433068..dcdb3553d8c3 100644 --- a/source/Plugins/Process/Linux/ProcFileReader.h +++ b/source/Plugins/Process/Linux/ProcFileReader.h @@ -18,18 +18,18 @@ namespace lldb_private { namespace process_linux { - class ProcFileReader - { - public: - - static lldb::DataBufferSP - ReadIntoDataBuffer (lldb::pid_t pid, const char *name); - - /// Parse the /proc/{@a pid}/{@a name} file line by line, passing each line to line_parser, until - /// either end of file or until line_parser returns false. - static Error - ProcessLineByLine (lldb::pid_t pid, const char *name, std::function<bool (const std::string &line)> line_parser); - }; +class ProcFileReader { +public: + static lldb::DataBufferSP ReadIntoDataBuffer(lldb::pid_t pid, + const char *name); + + /// Parse the /proc/{@a pid}/{@a name} file line by line, passing each line to + /// line_parser, until + /// either end of file or until line_parser returns false. + static Error + ProcessLineByLine(lldb::pid_t pid, const char *name, + std::function<bool(const std::string &line)> line_parser); +}; } // namespace process_linux } // namespace lldb_private |