Changeset View
Changeset View
Standalone View
Standalone View
src/parser/backtraceparserlldb.cpp
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | Copyright (C) 2014 René J.V. Bertin <rjvbertin@gmail.com> | ||||
3 | | ||||
4 | This program is free software; you can redistribute it and/or modify | ||||
5 | it under the terms of the GNU General Public License as published by | ||||
6 | the Free Software Foundation; either version 2 of the License, or | ||||
7 | (at your option) any later version. | ||||
8 | | ||||
9 | This program is distributed in the hope that it will be useful, | ||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
12 | GNU General Public License for more details. | ||||
13 | | ||||
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., | ||||
16 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||||
17 | */ | ||||
18 | #include "backtraceparserlldb.h" | ||||
19 | #include "backtraceparser_p.h" | ||||
20 | | ||||
21 | //BEGIN BacktraceParserLldb | ||||
22 | | ||||
23 | class BacktraceLineLldb : public BacktraceLine | ||||
24 | { | ||||
25 | public: | ||||
26 | BacktraceLineLldb(const QString & line); | ||||
27 | }; | ||||
28 | | ||||
29 | BacktraceLineLldb::BacktraceLineLldb(const QString & line) | ||||
30 | : BacktraceLine() | ||||
31 | { | ||||
32 | d->m_line = line; | ||||
33 | // For now we'll have faith that lldb provides useful information, and that it would | ||||
34 | // be unwarranted to give it a rating of "MissingEverything". | ||||
35 | d->m_rating = Good; | ||||
36 | } | ||||
37 | | ||||
38 | //END BacktraceLineLldb | ||||
39 | | ||||
40 | //BEGIN BacktraceParserLldb | ||||
41 | | ||||
42 | BacktraceParserLldb::BacktraceParserLldb(QObject *parent) : BacktraceParser(parent) {} | ||||
43 | | ||||
44 | BacktraceParserPrivate *BacktraceParserLldb::constructPrivate() const | ||||
45 | { | ||||
46 | BacktraceParserPrivate *d = BacktraceParser::constructPrivate(); | ||||
47 | d->m_usefulness = MayBeUseful; | ||||
48 | return d; | ||||
49 | } | ||||
50 | | ||||
51 | void BacktraceParserLldb::newLine(const QString & lineStr) | ||||
52 | { | ||||
53 | d_ptr->m_linesList.append(BacktraceLineLldb(lineStr)); | ||||
54 | } | ||||
55 | | ||||
56 | | ||||
57 | //END BacktraceParserLldb |