diff options
Diffstat (limited to 'lib/sanitizer_common/sanitizer_symbolizer.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_symbolizer.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/lib/sanitizer_common/sanitizer_symbolizer.h b/lib/sanitizer_common/sanitizer_symbolizer.h index 3a807744d..25c7034fd 100644 --- a/lib/sanitizer_common/sanitizer_symbolizer.h +++ b/lib/sanitizer_common/sanitizer_symbolizer.h @@ -141,8 +141,8 @@ class ExternalSymbolizerInterface { public: // Can't declare pure virtual functions in sanitizer runtimes: // __cxa_pure_virtual might be unavailable. - virtual char *SendCommand(bool is_data, const char *module_name, - uptr module_offset) { + virtual const char *SendCommand(bool is_data, const char *module_name, + uptr module_offset) { UNIMPLEMENTED(); } }; @@ -150,26 +150,18 @@ class ExternalSymbolizerInterface { // SymbolizerProcess encapsulates communication between the tool and // external symbolizer program, running in a different subprocess. // SymbolizerProcess may not be used from two threads simultaneously. -class SymbolizerProcess : public ExternalSymbolizerInterface { +class SymbolizerProcess { public: explicit SymbolizerProcess(const char *path); - char *SendCommand(bool is_data, const char *module_name, - uptr module_offset) override; + const char *SendCommand(const char *command); private: bool Restart(); - char *SendCommandImpl(bool is_data, const char *module_name, - uptr module_offset); + const char *SendCommandImpl(const char *command); bool ReadFromSymbolizer(char *buffer, uptr max_length); bool WriteToSymbolizer(const char *buffer, uptr length); bool StartSymbolizerSubprocess(); - virtual bool RenderInputCommand(char *buffer, uptr max_length, bool is_data, - const char *module_name, - uptr module_offset) const { - UNIMPLEMENTED(); - } - virtual bool ReachedEndOfOutput(const char *buffer, uptr length) const { UNIMPLEMENTED(); } |