Changeset View
Changeset View
Standalone View
Standalone View
debuggers/common/mi/mi.h
- This file was moved from debuggers/gdb/mi/gdbmi.h.
1 | /*************************************************************************** | 1 | /*************************************************************************** | ||
---|---|---|---|---|---|
2 | * Copyright (C) 2004 by Roberto Raggi * | 2 | * Copyright (C) 2004 by Roberto Raggi * | ||
3 | * roberto@kdevelop.org * | 3 | * roberto@kdevelop.org * | ||
4 | * Copyright (C) 2005-2006 by Vladimir Prus * | 4 | * Copyright (C) 2005-2006 by Vladimir Prus * | ||
5 | * ghost@cs.msu.su * | 5 | * ghost@cs.msu.su * | ||
6 | * Copyright (C) 2016 by Aetf * | ||||
7 | * aetf@unlimitedcodeworks.xyz * | ||||
6 | * * | 8 | * * | ||
7 | * This program is free software; you can redistribute it and/or modify * | 9 | * This program is free software; you can redistribute it and/or modify * | ||
8 | * it under the terms of the GNU Library General Public License as * | 10 | * it under the terms of the GNU Library General Public License as * | ||
9 | * published by the Free Software Foundation; either version 2 of the * | 11 | * published by the Free Software Foundation; either version 2 of the * | ||
10 | * License, or (at your option) any later version. * | 12 | * License, or (at your option) any later version. * | ||
11 | * * | 13 | * * | ||
12 | * This program is distributed in the hope that it will be useful, * | 14 | * This program is distributed in the hope that it will be useful, * | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
15 | * GNU General Public License for more details. * | 17 | * GNU General Public License for more details. * | ||
16 | * * | 18 | * * | ||
17 | * You should have received a copy of the GNU Library General Public * | 19 | * You should have received a copy of the GNU Library General Public * | ||
18 | * License along with this program; if not, write to the * | 20 | * License along with this program; if not, write to the * | ||
19 | * Free Software Foundation, Inc., * | 21 | * Free Software Foundation, Inc., * | ||
20 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | 22 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * | ||
21 | ***************************************************************************/ | 23 | ***************************************************************************/ | ||
22 | #ifndef GDBMI_H | 24 | #ifndef GDBMI_H | ||
23 | #define GDBMI_H | 25 | #define GDBMI_H | ||
24 | 26 | | |||
25 | #include <QString> | 27 | #include <QString> | ||
26 | #include <qmap.h> | 28 | #include <QMap> | ||
27 | 29 | | |||
28 | #include <stdexcept> | 30 | #include <stdexcept> | ||
29 | 31 | | |||
30 | /** | 32 | /** | ||
31 | @author Roberto Raggi | 33 | @author Roberto Raggi | ||
32 | @author Vladimir Prus | 34 | @author Vladimir Prus | ||
33 | */ | 35 | */ | ||
34 | namespace GDBMI | 36 | namespace KDevMI { namespace MI { | ||
35 | { | | |||
36 | enum CommandType { | 37 | enum CommandType { | ||
37 | NonMI, | 38 | NonMI, | ||
38 | 39 | | |||
39 | BreakAfter, | 40 | BreakAfter, | ||
40 | BreakCatch, | 41 | BreakCatch, | ||
41 | BreakCommands, | 42 | BreakCommands, | ||
42 | BreakCondition, | 43 | BreakCondition, | ||
43 | BreakDelete, | 44 | BreakDelete, | ||
▲ Show 20 Lines • Show All 273 Lines • ▼ Show 20 Line(s) | 316 | { | |||
317 | ~TupleValue(); | 318 | ~TupleValue(); | ||
318 | 319 | | |||
319 | bool hasField(const QString&) const override; | 320 | bool hasField(const QString&) const override; | ||
320 | 321 | | |||
321 | using Value::operator[]; | 322 | using Value::operator[]; | ||
322 | const Value& operator[](const QString& variable) const override; | 323 | const Value& operator[](const QString& variable) const override; | ||
323 | 324 | | |||
324 | QList<Result*> results; | 325 | QList<Result*> results; | ||
325 | QMap<QString, GDBMI::Result*> results_by_name; | 326 | QMap<QString, Result*> results_by_name; | ||
326 | }; | 327 | }; | ||
327 | 328 | | |||
328 | struct ListValue : public Value | 329 | struct ListValue : public Value | ||
329 | { | 330 | { | ||
330 | ListValue() { Value::kind = List; } | 331 | ListValue() { Value::kind = List; } | ||
331 | ~ListValue(); | 332 | ~ListValue(); | ||
332 | 333 | | |||
333 | bool empty() const override; | 334 | bool empty() const override; | ||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | 410 | StreamRecord(Subkind subkind) | |||
410 | : subkind(subkind) | 411 | : subkind(subkind) | ||
411 | { | 412 | { | ||
412 | Record::kind = Stream; | 413 | Record::kind = Stream; | ||
413 | } | 414 | } | ||
414 | 415 | | |||
415 | Subkind subkind; | 416 | Subkind subkind; | ||
416 | QString message; | 417 | QString message; | ||
417 | }; | 418 | }; | ||
418 | } | 419 | } // end of namespace MI | ||
420 | } // end of namespace KDevMI | ||||
419 | 421 | | |||
420 | #endif | 422 | #endif |