X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fmain.cxx;h=14dc0cb2d82bdd2a9820cfdeaf6ba71cb8a03f78;hp=3a60a9974fc16e5b35bf1c3cdae77845208b551a;hb=9b491d88e22891dca6c2d54dda50721239d250db;hpb=9023eb3885faa52eb9729b61b401e5b131199c0d diff --git a/src/main.cxx b/src/main.cxx index 3a60a99..14dc0cb 100644 --- a/src/main.cxx +++ b/src/main.cxx @@ -1,13 +1,17 @@ -#include "include.hxx" +#include "include_llvm.hxx" #include #include #include +#include #include +#include "log4cxx/logger.h" +#include "log4cxx/basicconfigurator.h" + #include "Binary.hxx" -#include "gui/Mainwindow.h++" +#include "gui/Mainwindow.hxx" using std::cout; using std::cin; @@ -15,12 +19,22 @@ using std::cerr; int main(int argc, char** argv) { + log4cxx::BasicConfigurator::configure(); + log4cxx::LoggerPtr _logger(log4cxx::Logger::getLogger("main")); + + LOG4CXX_DEBUG(_logger, "Initializing LLVM"); llvm::InitializeAllTargetInfos(); llvm::InitializeAllTargetMCs(); llvm::InitializeAllAsmParsers(); llvm::InitializeAllDisassemblers(); + LOG4CXX_DEBUG(_logger, "Initializing Qt"); QApplication app(argc, argv); + QCommandLineParser parser; + + QApplication::setApplicationName("frida"); + parser.addHelpOption(); + parser.process(app); Mainwindow m; m.show();