Fix bug when displaying dprintf in PrintPoint view.

This commit is contained in:
Ernie Pasveer
2024-12-08 11:36:55 -06:00
parent 4d1746c6d4
commit bba66da1e7
4 changed files with 7 additions and 10 deletions
+4 -2
View File
@@ -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;
+1 -1
View File
@@ -72,7 +72,7 @@
</column>
<column>
<property name="text">
<string>DPrintf</string>
<string>Command</string>
</property>
</column>
<column>
+2 -3
View File
@@ -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
-4
View File
@@ -1,4 +0,0 @@
Hello
Hello
Hello
Hello