diff --git a/tools/analysis/VisualFAIL/core.php b/tools/analysis/VisualFAIL/core.php
index 0aa4fd85..ab55177c 100644
--- a/tools/analysis/VisualFAIL/core.php
+++ b/tools/analysis/VisualFAIL/core.php
@@ -165,7 +165,7 @@ function asmCode()
$content = $content;
while ($row = mysql_fetch_object($ergebnis)) {
- $content .= '' . dechex($row->instr_address) . ' ' . htmlspecialchars($row->disassemble) . '
';
+ $content .= dechex($row->instr_address) . '
';
}
echo json_encode($content);
}
@@ -185,6 +185,7 @@ function getAsmCode()
//$fehlerdaten = askDBFehler($_GET['variant_id'], $resulttypes, $_GET['version']);
//print_r($fehlerdaten);
+ // FIXME id not unique
$content = '
instr_address,$fehlerdaten['Daten'])) {
- $content .= '
instr_address) . '" class="hasFehler" ';
foreach ($resulttypes as $value) {
$content .= $value . '="' . $fehlerdaten['Daten'][$row->instr_address][$value] . '" ';
@@ -201,7 +202,7 @@ function getAsmCode()
$content .= ' style="cursor: pointer;">' . dechex($row->instr_address) . ' ' . htmlspecialchars($row->disassemble) . '';
} else {
- $content .= '
' . dechex($row->instr_address) . ' ' . htmlspecialchars($row->disassemble) . '';
+ $content .= dechex($row->instr_address) . ' ' . htmlspecialchars($row->disassemble);
}
$content .= '
';
}
@@ -261,7 +262,7 @@ function getHighlevelCode()
while ($row = mysql_fetch_object($mappingErgebnis)) {
if (array_key_exists($row->instr_address,$fehlerdaten['Daten'])) {
- $newline .= '
instr_address) . '" class="hasFehler" ';
foreach ($resulttypes as $value) {
$newline .= $value . '="' . $fehlerdaten['Daten'][$row->instr_address][$value] . '" ';
@@ -270,7 +271,7 @@ function getHighlevelCode()
$newline .= ' style="cursor: pointer;">' . dechex($row->instr_address) . ' ' . htmlspecialchars($row->disassemble) . '';
} else {
- $newline = '
' . dechex($row->instr_address) . ' ' . htmlspecialchars($row->disassemble) . '';
+ $newline = dechex($row->instr_address) . ' ' . htmlspecialchars($row->disassemble);
}
$newline .= '
';
$mapping[$lineNumber] [] = $newline;
@@ -282,9 +283,10 @@ function getHighlevelCode()
}
while ($row = mysql_fetch_object($highlevelCode)) {
- $content .= '
' . $row->linenumber . ' : ' . $row->line . '';
+ // FIXME id unique?
+ $content .= '
' . $row->linenumber . ' : ' . $row->line . '';
if (array_key_exists($row->linenumber, $mapping)) {
- $content .= '
';
+ $content .= '
';
foreach ($mapping[$row->linenumber] as $index => $span) {
$content .= $span;
}
diff --git a/tools/analysis/VisualFAIL/css/myStyle.css b/tools/analysis/VisualFAIL/css/myStyle.css
index 5f6292a1..b99a9041 100644
--- a/tools/analysis/VisualFAIL/css/myStyle.css
+++ b/tools/analysis/VisualFAIL/css/myStyle.css
@@ -14,6 +14,10 @@ body {
padding: 0 0 0 30px;
}
+.sourcecode {
+ font-weight: bold;
+}
+
#analyse {
margin: 20px 0 0 0;
-}
\ No newline at end of file
+}
diff --git a/tools/analysis/VisualFAIL/js/myscript.js b/tools/analysis/VisualFAIL/js/myscript.js
index deb11f37..d2aa06f7 100644
--- a/tools/analysis/VisualFAIL/js/myscript.js
+++ b/tools/analysis/VisualFAIL/js/myscript.js
@@ -47,7 +47,7 @@ function calcColor(fehler, maxFehler) {
$('body').popover({
selector: ".hasFehler",
html: true,
- title: function() { return $(this).attr("id"); },
+ title: function() { return '0x' + $(this).attr("data-address"); },
content: function() {
var ausgabe = '';
var caller = $(this);