File indexing completed on 2024-05-05 05:51:19
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 2008-2014 Dominik Haumann <dhaumann kde org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #pragma once 0008 0009 #include <QList> 0010 #include <QString> 0011 0012 class BtInfo 0013 { 0014 public: 0015 enum Type { Source = 0, Lib, Unknown, Invalid }; 0016 0017 /** 0018 * Default constructor => invalid element 0019 */ 0020 BtInfo() = default; 0021 0022 public: 0023 QString original; 0024 QString filename; 0025 QString function; 0026 QString address; 0027 int step = -1; 0028 int line = -1; 0029 0030 Type type = Invalid; 0031 }; 0032 0033 namespace KateBtParser 0034 { 0035 QList<BtInfo> parseBacktrace(const QString &bt); 0036 0037 } 0038 0039 // kate: space-indent on; indent-width 4; replace-tabs on;