blob: 663c8119ed5ab1d0b6ad6040bbaf2175a2930b1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
/***************************************************************************
begin : Sun Aug 8 1999
copyright : (C) 1999 by John Birch
email : [email protected]
Adapted for ruby debugging
--------------------------
begin : Mon Nov 1 2004
copyright : (C) 2004 by Richard Dale
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef _RDBCOMMAND_H_
#define _RDBCOMMAND_H_
#include "dbgcommand.h"
namespace RDBDebugger
{
class Breakpoint;
class VarItem;
// sigh - namespace's don't work on some of the older compilers
enum RDBCmd
{
CONSTANTS = 'C',
CVARS = 'V',
IVARS = 'I',
LOCALS = 'L'
};
#define RUNCMD (true)
#define NOTRUNCMD (false)
#define INFOCMD (true)
#define NOTINFOCMD (false)
/**
* @author John Birch
*/
class RDBCommand : public DbgCommand
{
public:
RDBCommand(const QCString& command, bool isRunCmd=false, bool isInfoCmd=true);
virtual ~RDBCommand();
private:
static QCString idlePrompt_;
};
/***************************************************************************/
/***************************************************************************/
/***************************************************************************/
class RDBItemCommand : public RDBCommand
{
public:
RDBItemCommand(VarItem *item, const QCString &command,
bool isRunCmd=false);
virtual ~RDBItemCommand();
VarItem *getItem() { return item_; }
private:
VarItem *item_;
};
/***************************************************************************/
/***************************************************************************/
/***************************************************************************/
class RDBSetBreakpointCommand : public RDBCommand
{
public:
RDBSetBreakpointCommand(const QCString& setCommand, int key);
virtual ~RDBSetBreakpointCommand();
int getKey() const { return key_; }
private:
int key_;
};
/***************************************************************************/
/***************************************************************************/
/***************************************************************************/
}
#endif
|