mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 08:34:42 +08:00
Fix bug when displaying dprintf in PrintPoint view.
This commit is contained in:
@@ -127,7 +127,7 @@ void SeerPrintpointsBrowserWidget::handleText (const QString& text) {
|
||||
QString file_text = Seer::parseFirst(bkpt_text, "file=", '"', '"', false);
|
||||
QString fullname_text = Seer::parseFirst(bkpt_text, "fullname=", '"', '"', false);
|
||||
QString line_text = Seer::parseFirst(bkpt_text, "line=", '"', '"', false);
|
||||
QString script_text = Seer::parseFirst(bkpt_text, "script=", '{', '}', false);
|
||||
QString script_text = Seer::parseFirst(bkpt_text, "script=", '[', ']', false);
|
||||
QString thread_groups_text = Seer::parseFirst(bkpt_text, "thread-groups=", '[', ']', false);
|
||||
QString cond_text = Seer::parseFirst(bkpt_text, "cond=", '"', '"', false);
|
||||
QString times_text = Seer::parseFirst(bkpt_text, "times=", '"', '"', false);
|
||||
@@ -139,7 +139,9 @@ void SeerPrintpointsBrowserWidget::handleText (const QString& text) {
|
||||
continue;
|
||||
}
|
||||
|
||||
script_text = Seer::filterBookends(Seer::parseCommaList(script_text, '{', '}'), '"', '"').join('\n');
|
||||
// Remove '"' bookends and then remove one level of escapes.
|
||||
script_text = Seer::filterBookends (script_text, '"', '"');
|
||||
script_text = Seer::filterEscapes(script_text);
|
||||
|
||||
// Add the level to the tree.
|
||||
QTreeWidgetItem* topItem = new QTreeWidgetItem;
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>DPrintf</string>
|
||||
<string>Command</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
dprintf -source /nas/erniep/Development/seer/tests/hellodprintf/hellodprintf.cpp -line 17,"Iteration %d Factorial %d\n",n,nfact
|
||||
break -source /nas/erniep/Development/seer/tests/hellodprintf/hellodprintf.cpp -line 24
|
||||
dprintf -source hellodprintf_fortran.f -line 11,"Iteration %d Factorial %d\n",n,nfact
|
||||
dprintf -source /nas/erniep/Development/seer/tests/hellodprintf/hellodprintf.cpp -line 44,"n=%d count=%d\n",n,count
|
||||
break -source /nas/erniep/Development/seer/tests/hellodprintf/hellodprintf.cpp -line 53
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
Hello
|
||||
Hello
|
||||
Hello
|
||||
Hello
|
||||
|
||||
Reference in New Issue
Block a user