Cleanup of old code
[frida/frida.git] / src / main.cxx
1 #include "include_llvm.hxx"
2
3 #include <iostream>
4 #include <climits>
5
6 #include <QApplication>
7 #include <QCommandLineParser>
8 #include <QTextEdit>
9
10 #include "log4cxx/logger.h"
11 #include "log4cxx/basicconfigurator.h"
12
13 #include "gui/Mainwindow.hxx"
14
15 using std::cout;
16 using std::cin;
17 using std::cerr;
18
19 int main(int argc, char** argv)
20 {
21 log4cxx::BasicConfigurator::configure();
22 log4cxx::LoggerPtr _logger(log4cxx::Logger::getLogger("main"));
23
24 LOG4CXX_DEBUG(_logger, "Initializing LLVM");
25 llvm::InitializeAllTargetInfos();
26 llvm::InitializeAllTargetMCs();
27 llvm::InitializeAllAsmParsers();
28 llvm::InitializeAllDisassemblers();
29
30 LOG4CXX_DEBUG(_logger, "Initializing Qt");
31 QApplication app(argc, argv);
32 QCommandLineParser parser;
33
34 QApplication::setApplicationName("frida");
35 parser.addHelpOption();
36 parser.process(app);
37
38 Mainwindow m;
39 m.show();
40
41 return app.exec();
42 }