summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--loc2c.c2
-rwxr-xr-xtestsuite/buildok/twentythree.stp9
-rwxr-xr-xtestsuite/buildok/twentytwo.stp8
3 files changed, 18 insertions, 1 deletions
diff --git a/loc2c.c b/loc2c.c
index fee66d04..10063eb2 100644
--- a/loc2c.c
+++ b/loc2c.c
@@ -1139,7 +1139,7 @@ discontiguify (struct obstack *pool, int indent, struct location *loc,
if (size > max_piece_bytes)
size = max_piece_bytes;
- obstack_printf (pool, "%*saddr = container_addr + " UFORMAT "\n",
+ obstack_printf (pool, "%*saddr = container_addr + " UFORMAT ";\n",
indent * 2, "", offset);
struct location *piece = new_synthetic_loc (pool, loc, false);
piece->byte_size = size;
diff --git a/testsuite/buildok/twentythree.stp b/testsuite/buildok/twentythree.stp
new file mode 100755
index 00000000..95a6f071
--- /dev/null
+++ b/testsuite/buildok/twentythree.stp
@@ -0,0 +1,9 @@
+#! stap -gp4
+
+# Test for writing 64-bit target variable, PR 1271
+
+probe kernel.function("free_task")
+{
+ $tsk->timestamp = 22;
+ log("set to 22 => " . string($tsk->timestamp));
+}
diff --git a/testsuite/buildok/twentytwo.stp b/testsuite/buildok/twentytwo.stp
new file mode 100755
index 00000000..2cb87bb8
--- /dev/null
+++ b/testsuite/buildok/twentytwo.stp
@@ -0,0 +1,8 @@
+#! stap -p4
+
+# Test for reading 64-bit target variable, PR 1271
+
+probe kernel.function("free_task")
+{
+ log("timestamp " . string($tsk->timestamp))
+}