- fix: can't correctly display stl containers in watch
This commit is contained in:
parent
817b1ca11f
commit
cbec8f60f4
4
NEWS.md
4
NEWS.md
|
@ -1,3 +1,7 @@
|
|||
Version 0.10.1 For Dev-C++ 7 Beta
|
||||
- fix: can't correctly expand watch expression that has spaces in it
|
||||
- fix: can't correctly display stl containers in watch
|
||||
|
||||
Version 0.10.0 For Dev-C++ 7 Beta
|
||||
- enhancement: use gdb/mi interface to communicate with gdb debug session
|
||||
- enhancement: better display of watch vars
|
||||
|
|
|
@ -913,7 +913,7 @@ void DebugReader::runNextCmd()
|
|||
params = " - @ "+params;
|
||||
} else if (pCmd->command == "-var-list-children") {
|
||||
//hack for list variable children,to easy remember var expression
|
||||
params = " --all-values " + params;
|
||||
params = " --all-values \"" + params+'\"';
|
||||
}
|
||||
s+=" "+params;
|
||||
s+= "\n";
|
||||
|
@ -1853,6 +1853,11 @@ void WatchModel::prepareVarChildren(const QString &parentName, int numChild, boo
|
|||
if (var) {
|
||||
var->numChild = numChild;
|
||||
var->hasMore = hasMore;
|
||||
if (var->children.count()>0) {
|
||||
beginRemoveRows(index(var),0,var->children.count()-1);
|
||||
var->children.clear();
|
||||
endRemoveRows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1891,14 +1896,15 @@ void WatchModel::updateVarValue(const QString &name, const QString &val, const Q
|
|||
var->type = newType;
|
||||
}
|
||||
QModelIndex idx = index(var);
|
||||
bool oldHasMore = var->hasMore;
|
||||
var->hasMore = hasMore;
|
||||
if (newNumChildren>=0
|
||||
&& var->numChild!=newNumChildren) {
|
||||
beginRemoveRows(idx,0,var->children.count());
|
||||
var->children.clear();
|
||||
endRemoveRows();
|
||||
var->numChild = newNumChildren;
|
||||
fetchMore(idx);
|
||||
} else if (!oldHasMore && hasMore) {
|
||||
fetchMore(idx);
|
||||
}
|
||||
var->hasMore = hasMore;
|
||||
emit dataChanged(idx,createIndex(idx.row(),2,var.get()));
|
||||
}
|
||||
|
||||
|
|
|
@ -1447,6 +1447,7 @@ void MainWindow::debug()
|
|||
mDebugger->sendAllBreakpointsToDebugger();
|
||||
|
||||
// Run the debugger
|
||||
mDebugger->sendCommand("-enable-pretty-printing","");
|
||||
mDebugger->sendCommand("-data-list-register-names","");
|
||||
mDebugger->sendCommand("-gdb-set", "width 0"); // don't wrap output, very annoying
|
||||
mDebugger->sendCommand("-gdb-set", "new-console on");
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
#define VERSION_H
|
||||
#include <QObject>
|
||||
|
||||
#define DEVCPP_VERSION "beta.0.10.0"
|
||||
#define DEVCPP_VERSION "beta.0.10.1"
|
||||
|
||||
#endif // VERSION_H
|
||||
|
|
Loading…
Reference in New Issue