summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/pointer_array.exp
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-07-14 17:57:16 -0700
committerJosh Stone <jistone@redhat.com>2009-07-14 17:57:16 -0700
commitd52761f89a1826b1cca29b1a63269eafe7197756 (patch)
treea5b5d178e1586fb1d4cdc2733089b8d6cb753be9 /testsuite/systemtap.base/pointer_array.exp
parent9344d46f4186dbeaff984b1af6333d5c55221cd5 (diff)
downloadsystemtap-steved-d52761f89a1826b1cca29b1a63269eafe7197756.tar.gz
systemtap-steved-d52761f89a1826b1cca29b1a63269eafe7197756.tar.xz
systemtap-steved-d52761f89a1826b1cca29b1a63269eafe7197756.zip
PR4166: Allow array-like indexing on pointers
* dwflpp.cxx (dwflpp::translate_components): let pointers get treated the same as arrays, and add a final DIE dereference for array access. * loc2c.c (c_translate_array): tolerate pointer types * testsuite/systemtap.base/pointer_array.*: new test
Diffstat (limited to 'testsuite/systemtap.base/pointer_array.exp')
-rw-r--r--testsuite/systemtap.base/pointer_array.exp13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/pointer_array.exp b/testsuite/systemtap.base/pointer_array.exp
new file mode 100644
index 00000000..0e3af213
--- /dev/null
+++ b/testsuite/systemtap.base/pointer_array.exp
@@ -0,0 +1,13 @@
+set test "pointer_array"
+set ::result_string {/bin/true
+/
+b
+i
+n
+/
+t
+r
+u
+e
+0}
+stap_run2 $srcdir/$subdir/$test.stp -c/bin/true