Commit 0b22f94f authored by hjk's avatar hjk
Browse files

debugger: update gnuplot based dumper testcode



Change-Id: Iab6994da30c95c65541b94d95ddbb877f319ee3b
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 9deb806b
......@@ -2697,20 +2697,24 @@ if False:
d.putItem(v["a"])
def qdump__Function(d, value):
if False:
def qform__basic__Function():
return "Normal,Displayed"
def qdump__basic__Function(d, value):
min = value["min"]
max = value["max"]
data, size, alloc = qByteArrayData(value["var"])
var = extractCString(data)
var = extractCString(data, 0)
data, size, alloc = qByteArrayData(value["f"])
f = extractCString(data)
f = extractCString(data, 0)
d.putValue("%s, %s=%f..%f" % (f, var, min, max))
d.putNumChild(0)
d.putField("typeformats", "Normal,Displayed");
format = d.currentItemFormat()
if format == 0:
if format == 1:
d.putDisplay(StopDisplay)
elif format == 1:
elif format == 2:
input = "plot [%s=%f:%f] %s" % (var, min, max, f)
d.putDisplay(DisplayProcess, input, "gnuplot")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment