diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-11-16 10:02:50 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-11-16 10:47:38 +0100 |
commit | 228af5c49c06079e6bfe1daa64ead51b1dc979c7 (patch) | |
tree | 006a8c43562f1170ceda08b4584ca318f0b0b746 /testsuite/buildok | |
parent | 7b76473cbad92366721defee51d93396cb101134 (diff) | |
download | systemtap-steved-228af5c49c06079e6bfe1daa64ead51b1dc979c7.tar.gz systemtap-steved-228af5c49c06079e6bfe1daa64ead51b1dc979c7.tar.xz systemtap-steved-228af5c49c06079e6bfe1daa64ead51b1dc979c7.zip |
PR10622 Search for extern $variables in symbol table.
* dwflpp.h (vardie_from_symtable): New method.
* dwflpp.cxx (vardie_from_symtable): New method.
(literal_stmt_for_local): Use vardie_from_symtable when no location
attribute and DW_AT_external.
* testsuite/buildok/xtime.stp: New testcase from PR10622.
Diffstat (limited to 'testsuite/buildok')
-rwxr-xr-x | testsuite/buildok/xtime.stp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/buildok/xtime.stp b/testsuite/buildok/xtime.stp new file mode 100755 index 00000000..e41f9b16 --- /dev/null +++ b/testsuite/buildok/xtime.stp @@ -0,0 +1,7 @@ +#! stap -p4 + +# Test for getting at an external global variable PR10622 +probe kernel.function("do_gettimeofday") +{ + printf("xtime.tv_sec:%d\n", $xtime->tv_sec); exit(); +} |