aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchhandler.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2010-04-27 08:53:18 +0200
committerhjk <[email protected]>2010-04-27 15:33:23 +0200
commit6bb7b6176fbe78675208bd5ed59313803f21ccd1 (patch)
tree017c82da28e893b059d488a841245aefa4ba032f /src/plugins/debugger/watchhandler.cpp
parent34db4fd335496ad05eb7a5d7961b0cddd6bf10c2 (diff)
debugger: add a cut-down version of the dumpers for python
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r--src/plugins/debugger/watchhandler.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index e4a3bb61ab6..b4cfd13f26e 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -1390,13 +1390,11 @@ int WatchHandler::format(const QByteArray &iname) const
return result;
}
-QByteArray WatchHandler::formatRequests() const
+QByteArray WatchHandler::expansionRequests() const
{
QByteArray ba;
//m_locals->formatRequests(&ba, m_locals->m_root);
//m_watchers->formatRequests(&ba, m_watchers->m_root);
-
- ba.append("expanded:");
if (!m_expandedINames.isEmpty()) {
QSetIterator<QByteArray> jt(m_expandedINames);
while (jt.hasNext()) {
@@ -1406,9 +1404,12 @@ QByteArray WatchHandler::formatRequests() const
}
ba.chop(1);
}
- ba.append(' ');
+ return ba;
+}
- ba.append("typeformats:");
+QByteArray WatchHandler::typeFormatRequests() const
+{
+ QByteArray ba;
if (!m_typeFormats.isEmpty()) {
QHashIterator<QString, int> it(m_typeFormats);
while (it.hasNext()) {
@@ -1420,9 +1421,12 @@ QByteArray WatchHandler::formatRequests() const
}
ba.chop(1);
}
- ba.append(' ');
+ return ba;
+}
- ba.append("formats:");
+QByteArray WatchHandler::individualFormatRequests() const
+{
+ QByteArray ba;
if (!m_individualFormats.isEmpty()) {
QHashIterator<QByteArray, int> it(m_individualFormats);
while (it.hasNext()) {
@@ -1434,8 +1438,6 @@ QByteArray WatchHandler::formatRequests() const
}
ba.chop(1);
}
- ba.append(' ');
-
return ba;
}