X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FConsole%2FServer.hh;h=7d0a10de99b48040a520020104505d49bcae3c3d;hb=b8ca4a544cce3e6023bb56b712a03d6362f2bb79;hp=431221be6ccf38ea1fa1cf8d75c837e277a30788;hpb=0461eef93912cb9d454d726b4a7b4ccf50ed31bd;p=senf.git diff --git a/Utils/Console/Server.hh b/Utils/Console/Server.hh index 431221b..7d0a10d 100644 --- a/Utils/Console/Server.hh +++ b/Utils/Console/Server.hh @@ -176,6 +176,7 @@ namespace console { DirectoryNode & cwd() const; Server::Mode mode() const; void write(std::string const & data) const; + std::string const & backtrace() const; static Client & get(std::ostream & os); @@ -186,7 +187,7 @@ namespace console { void setInteractive(); void setNoninteractive(); - + size_t handleInput(std::string input, bool incremental = false); virtual void v_write(senf::log::time_type timestamp, std::string const & stream, std::string const & area, unsigned level, @@ -202,10 +203,19 @@ namespace console { std::string lastCommand_; boost::scoped_ptr reader_; Server::Mode mode_; + std::string backtrace_; friend class Server; friend class detail::ClientReader; friend class detail::NonblockingSocketSink; + + class SysBacktrace + { + SysBacktrace(); + static void backtrace(std::ostream & os); + static SysBacktrace instance_; + }; + }; /** \brief Output Console Client instance as it's string representation