1
/***************************************************************************
3
copyright : (C) 1999 by John Birch
4
email : jbb@kdevelop.org
5
***************************************************************************/
7
/***************************************************************************
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
14
***************************************************************************/
16
#ifndef _GDBCOMMAND_H_
17
#define _GDBCOMMAND_H_
19
#include "dbgcommand.h"
27
// sigh - namespace's don't work on some of the older compilers
31
SRC_POSITION = '\32', // Hmmm, same value may not work for all compilers
81
#define NOTRUNCMD (false)
82
#define INFOCMD (true)
83
#define NOTINFOCMD (false)
89
class GDBCommand : public DbgCommand
92
GDBCommand(const QCString& command, bool isRunCmd=false, bool isInfoCmd=true,
94
virtual ~GDBCommand();
97
static QCString idlePrompt_;
100
/***************************************************************************/
101
/***************************************************************************/
102
/***************************************************************************/
103
class GDBItemCommand : public GDBCommand
106
GDBItemCommand(VarItem *item, const QCString &command,
107
bool isRunCmd=false, char prompt=DATAREQUEST);
108
virtual ~GDBItemCommand();
110
VarItem *getItem() { return item_; }
116
/***************************************************************************/
117
/***************************************************************************/
118
/***************************************************************************/
119
//class GDBReferenceCommand : public GDBItemCommand
122
// GDBReferenceCommand(VarItem* item);
123
// virtual ~GDBReferenceCommand();
126
/***************************************************************************/
127
/***************************************************************************/
128
/***************************************************************************/
129
class GDBSetBreakpointCommand : public GDBCommand
132
GDBSetBreakpointCommand(const QCString& setCommand, const Breakpoint* bp);
133
virtual ~GDBSetBreakpointCommand();
135
const Breakpoint* breakpoint() const { return bp_; }
138
const Breakpoint* bp_;
141
/***************************************************************************/
142
/***************************************************************************/
143
/***************************************************************************/