X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FConsole%2FServer.cc;h=b46cd6e6ff3708b9b8155c9d274691a62d41fc6f;hb=941ca33da6ee01d78c07fa6b514de10da1ef3948;hp=a1bad60e45e27a1a2b53e43b9e1e77e93fb57951;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Utils/Console/Server.cc b/senf/Utils/Console/Server.cc index a1bad60..b46cd6e 100644 --- a/senf/Utils/Console/Server.cc +++ b/senf/Utils/Console/Server.cc @@ -33,9 +33,9 @@ #include #include #include -#include "../../Utils/senfassert.hh" -#include "../../Utils/membind.hh" -#include "../../Utils/Logger/SenfLog.hh" +#include +#include +#include #include "LineEditor.hh" #include "ScopedDirectory.hh" #include "Sysdir.hh" @@ -354,8 +354,10 @@ prefix_ unsigned senf::console::Client::getWidth(std::ostream & os, unsigned def prefix_ senf::console::Client::SysBacktrace::SysBacktrace() { - sysdir().node().add("backtrace", &SysBacktrace::backtrace) - .doc("Display the backtrace of the last error / exception in this console"); + namespace fty = senf::console::factory; + + sysdir().add("backtrace", fty::Command(&SysBacktrace::backtrace) + .doc("Display the backtrace of the last error / exception in this console") ); } prefix_ void senf::console::Client::SysBacktrace::backtrace(std::ostream & os)