summaryrefslogtreecommitdiffstats
path: root/languages/cpp/debugger/breakpoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/debugger/breakpoint.cpp')
-rw-r--r--languages/cpp/debugger/breakpoint.cpp94
1 files changed, 47 insertions, 47 deletions
diff --git a/languages/cpp/debugger/breakpoint.cpp b/languages/cpp/debugger/breakpoint.cpp
index 7bcf674f..c9ed193e 100644
--- a/languages/cpp/debugger/breakpoint.cpp
+++ b/languages/cpp/debugger/breakpoint.cpp
@@ -20,11 +20,11 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qfileinfo.h>
-#include <qfontmetrics.h>
-#include <qpainter.h>
-#include <qregexp.h>
-#include <qstring.h>
+#include <tqfileinfo.h>
+#include <tqfontmetrics.h>
+#include <tqpainter.h>
+#include <tqregexp.h>
+#include <tqstring.h>
#include <stdio.h>
#include <typeinfo>
@@ -174,18 +174,18 @@ void Breakpoint::modifyBreakpoint(GDBController* controller)
{
controller->
addCommandBeforeRun(
- new ModifyBreakpointCommand(QString("-break-condition %1 ") +
+ new ModifyBreakpointCommand(TQString("-break-condition %1 ") +
conditional(), this));
controller->
addCommandBeforeRun(
- new ModifyBreakpointCommand(QString("-break-after %1 ") +
- QString::number(ignoreCount()), this));
+ new ModifyBreakpointCommand(TQString("-break-after %1 ") +
+ TQString::number(ignoreCount()), this));
controller->
addCommandBeforeRun(
new ModifyBreakpointCommand(isEnabled() ?
- QString("-break-enable %1")
- : QString("-break-disable %1"), this));
+ TQString("-break-enable %1")
+ : TQString("-break-disable %1"), this));
}
void Breakpoint::removedInGdb()
@@ -210,12 +210,12 @@ bool Breakpoint::match(const Breakpoint* breakpoint) const
/***************************************************************************/
-QString Breakpoint::dbgRemoveCommand() const
+TQString Breakpoint::dbgRemoveCommand() const
{
if (dbgId_>0)
- return QString("-break-delete %1").arg(dbgId_); // gdb command - not translatable
+ return TQString("-break-delete %1").arg(dbgId_); // gdb command - not translatable
- return QString();
+ return TQString();
}
@@ -258,9 +258,9 @@ void Breakpoint::setActive(int active, int id)
/***************************************************************************/
-QString Breakpoint::statusDisplay(int activeFlag) const
+TQString Breakpoint::statusDisplay(int activeFlag) const
{
- QString status="";
+ TQString status="";
if (!s_enabled_)
status = i18n("Disabled");
else
@@ -280,9 +280,9 @@ QString Breakpoint::statusDisplay(int activeFlag) const
return status;
}
-QString Breakpoint::traceRealFormatString() const
+TQString Breakpoint::traceRealFormatString() const
{
- QString result;
+ TQString result;
if (traceFormatStringEnabled())
{
@@ -298,9 +298,9 @@ QString Breakpoint::traceRealFormatString() const
}
else
{
- result += " " + QString::number(key()) + ": ";
+ result += " " + TQString::number(key()) + ": ";
}
- for(QStringList::const_iterator i = tracedExpressions_.begin(),
+ for(TQStringList::const_iterator i = tracedExpressions_.begin(),
e = tracedExpressions_.end(); i != e; ++i)
{
result += " " + *i + " = %d";
@@ -310,7 +310,7 @@ QString Breakpoint::traceRealFormatString() const
// Quote the thing
result = "\"" + result + "\\n\"";
- for(QStringList::const_iterator i = tracedExpressions_.begin(),
+ for(TQStringList::const_iterator i = tracedExpressions_.begin(),
e = tracedExpressions_.end(); i != e; ++i)
{
result += ", " + *i;
@@ -381,21 +381,21 @@ FilePosBreakpoint::FilePosBreakpoint()
line_(-1)
{}
-FilePosBreakpoint::FilePosBreakpoint(const QString &fileName, int lineNum,
+FilePosBreakpoint::FilePosBreakpoint(const TQString &fileName, int lineNum,
bool temporary, bool enabled)
: Breakpoint(temporary, enabled)
{
// Sets 'subtype'
- setLocation(QString("%1:%2").arg(fileName).arg(lineNum));
+ setLocation(TQString("%1:%2").arg(fileName).arg(lineNum));
}
FilePosBreakpoint::~FilePosBreakpoint()
{
}
-QString FilePosBreakpoint::dbgSetCommand(GDBController *c) const
+TQString FilePosBreakpoint::dbgSetCommand(GDBController *c) const
{
- QString cmdStr = "-break-insert";
+ TQString cmdStr = "-break-insert";
if (isTemporary())
cmdStr = cmdStr + " -t";
@@ -416,7 +416,7 @@ bool FilePosBreakpoint::match_data(const Breakpoint *xb) const
return false;
}
-QString FilePosBreakpoint::displayType() const
+TQString FilePosBreakpoint::displayType() const
{
return i18n("Code breakpoint", "Code");
}
@@ -431,7 +431,7 @@ bool FilePosBreakpoint::hasFileAndLine() const
return line_ != -1;
}
-QString FilePosBreakpoint::fileName() const
+TQString FilePosBreakpoint::fileName() const
{
return fileName_;
}
@@ -443,11 +443,11 @@ unsigned FilePosBreakpoint::lineNum() const
-QString FilePosBreakpoint::location(bool compact) const
+TQString FilePosBreakpoint::location(bool compact) const
{
if (subtype_ == filepos && hasFileAndLine() && compact)
{
- return QFileInfo(fileName_).fileName()+":"+QString::number(line_);
+ return TQFileInfo(fileName_).fileName()+":"+TQString::number(line_);
}
else
{
@@ -457,21 +457,21 @@ QString FilePosBreakpoint::location(bool compact) const
/***************************************************************************/
-void FilePosBreakpoint::setLocation(const QString& location)
+void FilePosBreakpoint::setLocation(const TQString& location)
{
location_ = location;
- QRegExp regExp1("(.*):(\\d+)$");
+ TQRegExp regExp1("(.*):(\\d+)$");
regExp1.setMinimal(true);
if ( regExp1.search(location, 0) >= 0 )
{
subtype_ = filepos;
- QString t = regExp1.cap(1);
- QString dirPath = QFileInfo(t).dirPath();
+ TQString t = regExp1.cap(1);
+ TQString dirPath = TQFileInfo(t).dirPath();
if ( dirPath == "." )
{
- QString existingDirPath = QFileInfo(fileName_).dirPath();
+ TQString existingDirPath = TQFileInfo(fileName_).dirPath();
if (existingDirPath != ".")
fileName_ = existingDirPath+"/"+regExp1.cap(1);
else
@@ -482,7 +482,7 @@ void FilePosBreakpoint::setLocation(const QString& location)
line_ = regExp1.cap(2).toInt();
- location_ = QString("%1:%2").arg(fileName_).arg(regExp1.cap(2));
+ location_ = TQString("%1:%2").arg(fileName_).arg(regExp1.cap(2));
}
else
{
@@ -516,7 +516,7 @@ void FilePosBreakpoint::handleSet(const GDBMI::ResultRecord& r)
/***************************************************************************/
/***************************************************************************/
-Watchpoint::Watchpoint(const QString& varName, bool temporary, bool enabled)
+Watchpoint::Watchpoint(const TQString& varName, bool temporary, bool enabled)
: Breakpoint(temporary, enabled),
varName_(varName)
{
@@ -536,7 +536,7 @@ void Watchpoint::setBreakpoint(GDBController* controller)
controller->addCommandBeforeRun(
new GDBCommand(
- QString("-data-evaluate-expression &%1").arg(varName_),
+ TQString("-data-evaluate-expression &%1").arg(varName_),
this,
&Watchpoint::handleAddressComputed));
}
@@ -547,7 +547,7 @@ void Watchpoint::handleAddressComputed(const GDBMI::ResultRecord& r)
address_ = r["value"].literal().toULongLong(0, 16);
controller()->addCommandBeforeRun(
new GDBCommand(
- QString("-break-watch *%1").arg(r["value"].literal()),
+ TQString("-break-watch *%1").arg(r["value"].literal()),
static_cast<Breakpoint*>(this),
&Watchpoint::handleSet));
}
@@ -577,9 +577,9 @@ void Watchpoint::removedInGdb()
/***************************************************************************/
-QString Watchpoint::dbgSetCommand(GDBController *) const
+TQString Watchpoint::dbgSetCommand(GDBController *) const
{
- return QString("-break-watch ")+varName_; // gdb command - not translatable
+ return TQString("-break-watch ")+varName_; // gdb command - not translatable
}
/***************************************************************************/
@@ -591,14 +591,14 @@ bool Watchpoint::match_data(const Breakpoint* xb) const
return (varName_ == b->varName_);
}
-ReadWatchpoint::ReadWatchpoint(const QString& varName, bool temporary, bool enabled)
+ReadWatchpoint::ReadWatchpoint(const TQString& varName, bool temporary, bool enabled)
: Watchpoint(varName, temporary, enabled)
{
}
-QString ReadWatchpoint::dbgSetCommand(GDBController *) const
+TQString ReadWatchpoint::dbgSetCommand(GDBController *) const
{
- return QString("-break-watch -r ")+varName();
+ return TQString("-break-watch -r ")+varName();
}
bool ReadWatchpoint::match_data(const Breakpoint* xb) const
@@ -625,7 +625,7 @@ bool ReadWatchpoint::match_data(const Breakpoint* xb) const
//
///***************************************************************************/
//
-//QString ExitBreakpoint::dbgSetCommand() const
+//TQString ExitBreakpoint::dbgSetCommand() const
//{
// return "";
//}
@@ -667,14 +667,14 @@ bool ReadWatchpoint::match_data(const Breakpoint* xb) const
//
///***************************************************************************/
//
-//QString RegExpBreakpoint::dbgSetCommand() const
+//TQString RegExpBreakpoint::dbgSetCommand() const
//{
// return "";
//}
//
///***************************************************************************/
//
-////QString RegExpBreakpoint::dbgRemoveCommand() const
+////TQString RegExpBreakpoint::dbgRemoveCommand() const
////{
//// return "";
////}
@@ -698,14 +698,14 @@ bool ReadWatchpoint::match_data(const Breakpoint* xb) const
//
///***************************************************************************/
//
-//QString CatchBreakpoint::dbgSetCommand() const
+//TQString CatchBreakpoint::dbgSetCommand() const
//{
// return "";
//}
//
///***************************************************************************/
//
-////QString CatchBreakpoint::dbgRemoveCommand() const
+////TQString CatchBreakpoint::dbgRemoveCommand() const
////{
//// return "";
////}