From 01ed06fa4b9466dc39f4a37301a74a2b551fa015 Mon Sep 17 00:00:00 2001 From: roland Date: Wed, 26 Oct 2005 00:00:46 +0000 Subject: 2005-10-25 Roland McGrath PR 1271 cont'd. * testsuite/buildok/twentytwo.stp: New file. * testsuite/buildok/twentythree.stp: New file. * loc2c.c (discontiguify): Add missing ; in output. --- loc2c.c | 2 +- testsuite/buildok/twentythree.stp | 9 +++++++++ testsuite/buildok/twentytwo.stp | 8 ++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100755 testsuite/buildok/twentythree.stp create mode 100755 testsuite/buildok/twentytwo.stp 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)) +} -- cgit