Changeset View
Changeset View
Standalone View
Standalone View
src/parser/backtraceparser.cpp
Show All 13 Lines | 1 | /* | |||
---|---|---|---|---|---|
14 | You should have received a copy of the GNU General Public License along | 14 | You should have received a copy of the GNU General Public License along | ||
15 | with this program; if not, write to the Free Software Foundation, Inc., | 15 | with this program; if not, write to the Free Software Foundation, Inc., | ||
16 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 16 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
17 | */ | 17 | */ | ||
18 | #include "backtraceparser_p.h" | 18 | #include "backtraceparser_p.h" | ||
19 | #include "backtraceparsergdb.h" | 19 | #include "backtraceparsergdb.h" | ||
20 | #include "backtraceparserkdbgwin.h" | 20 | #include "backtraceparserkdbgwin.h" | ||
21 | #include "backtraceparserlldb.h" | 21 | #include "backtraceparserlldb.h" | ||
22 | #include "backtraceparsercdb.h" | ||||
22 | #include "backtraceparsernull.h" | 23 | #include "backtraceparsernull.h" | ||
23 | #include "drkonqi_parser_debug.h" | 24 | #include "drkonqi_parser_debug.h" | ||
24 | #include <QRegExp> | 25 | #include <QRegExp> | ||
25 | #include <QMetaEnum> | 26 | #include <QMetaEnum> | ||
26 | #include <QDebug> | 27 | #include <QDebug> | ||
27 | 28 | | |||
28 | //factory | 29 | //factory | ||
29 | BacktraceParser *BacktraceParser::newParser(const QString & debuggerName, QObject *parent) | 30 | BacktraceParser *BacktraceParser::newParser(const QString & debuggerName, QObject *parent) | ||
30 | { | 31 | { | ||
31 | if (debuggerName == QLatin1String("gdb")) { | 32 | if (debuggerName == QLatin1String("gdb")) { | ||
32 | return new BacktraceParserGdb(parent); | 33 | return new BacktraceParserGdb(parent); | ||
33 | } else if (debuggerName == QLatin1String("kdbgwin")) { | 34 | } else if (debuggerName == QLatin1String("kdbgwin")) { | ||
34 | return new BacktraceParserKdbgwin(parent); | 35 | return new BacktraceParserKdbgwin(parent); | ||
35 | } else if (debuggerName == QLatin1String("lldb")) { | 36 | } else if (debuggerName == QLatin1String("lldb")) { | ||
36 | return new BacktraceParserLldb(parent); | 37 | return new BacktraceParserLldb(parent); | ||
38 | } else if (debuggerName == QLatin1String("cdb")) { | ||||
39 | return new BacktraceParserCdb(parent); | ||||
37 | } else { | 40 | } else { | ||
38 | return new BacktraceParserNull(parent); | 41 | return new BacktraceParserNull(parent); | ||
39 | } | 42 | } | ||
40 | } | 43 | } | ||
41 | 44 | | |||
42 | BacktraceParser::BacktraceParser(QObject *parent) : QObject(parent), d_ptr(nullptr) {} | 45 | BacktraceParser::BacktraceParser(QObject *parent) : QObject(parent), d_ptr(nullptr) {} | ||
43 | BacktraceParser::~BacktraceParser() { delete d_ptr; } | 46 | BacktraceParser::~BacktraceParser() { delete d_ptr; } | ||
44 | 47 | | |||
▲ Show 20 Lines • Show All 357 Lines • Show Last 20 Lines |