jdbcommand.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _JDBCOMMAND_H_
00019 #define _JDBCOMMAND_H_
00020
00021 #include "dbgcommand.h"
00022
00023 namespace JAVADebugger
00024 {
00025
00026 class Breakpoint;
00027 class VarItem;
00028
00029
00030
00031 enum JDBCmd
00032 {
00033 BLOCK_START = '\32',
00034 SRC_POSITION = '\32',
00035
00036 BPLIST = 'B',
00037 SET_BREAKPT = 'b',
00038
00039 DATAREQUEST = 'D',
00040 DISASSEMBLE = 'd',
00041
00042 FRAME = 'F',
00043 FILE_START = 'f',
00044
00045 INITIALISE = 'I',
00046 IDLE = 'i',
00047
00048 LOCALS = 'L',
00049 LIBRARIES = 'l',
00050
00051 MEMDUMP = 'M',
00052
00053 RUN = 'R',
00054 REGISTERS = 'r',
00055
00056 PROGRAM_STOP = 'S',
00057
00058 STEP = 's',
00059
00060 BACKTRACE = 'T',
00061
00062 SETWATCH = 'W',
00063 UNSETWATCH = 'w',
00064
00065 DETACH = 'z',
00066
00067 WAIT = '0'
00068 };
00069
00070 #define RUNCMD (true)
00071 #define NOTRUNCMD (false)
00072 #define INFOCMD (true)
00073 #define NOTINFOCMD (false)
00074
00079 class JDBCommand : public DbgCommand
00080 {
00081 public:
00082 JDBCommand(const QCString& command, bool isRunCmd=false, bool isInfoCmd=true,
00083 char prompt=WAIT);
00084 virtual ~JDBCommand();
00085
00086 private:
00087 static QCString idlePrompt_;
00088 };
00089
00090
00091
00092
00093 class JDBItemCommand : public JDBCommand
00094 {
00095 public:
00096 JDBItemCommand(VarItem *item, const QCString &command,
00097 bool isRunCmd=false, char prompt=DATAREQUEST);
00098 virtual ~JDBItemCommand();
00099
00100 VarItem *getItem() { return item_; }
00101
00102 private:
00103 VarItem *item_;
00104 };
00105
00106
00107
00108
00109 class JDBPointerCommand : public JDBItemCommand
00110 {
00111 public:
00112 JDBPointerCommand(VarItem *item);
00113 virtual ~JDBPointerCommand();
00114 };
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129 class JDBSetBreakpointCommand : public JDBCommand
00130 {
00131 public:
00132 JDBSetBreakpointCommand(const QCString& setCommand, int key);
00133 virtual ~JDBSetBreakpointCommand();
00134
00135 int getKey() const { return key_; }
00136
00137 private:
00138 int key_;
00139 };
00140
00141
00142
00143
00144
00145 }
00146
00147 #endif
This file is part of the documentation for KDevelop Version 3.1.2.