From 349dc70e4967d0ae1fd7d504bd2c5c13f7b30fd8 Mon Sep 17 00:00:00 2001 From: Stan Cox Date: Wed, 26 Nov 2008 22:41:48 -0500 Subject: Support debuginfo static uprobes. --- testsuite/systemtap.base/static_uprobes.exp | 39 +++++++++++++++++++++++++++-- testsuite/systemtap.base/static_uprobes.stp | 15 +++++------ 2 files changed, 43 insertions(+), 11 deletions(-) (limited to 'testsuite/systemtap.base') diff --git a/testsuite/systemtap.base/static_uprobes.exp b/testsuite/systemtap.base/static_uprobes.exp index 75e8fd21..2e1c41e1 100644 --- a/testsuite/systemtap.base/static_uprobes.exp +++ b/testsuite/systemtap.base/static_uprobes.exp @@ -55,7 +55,6 @@ if { $res != "" } { } set ok 0 -set env(SYSTEMTAP_SDT) 1 spawn stap -c $sup_exepath $srcdir/$subdir/static_uprobes.stp expect { -timeout 180 @@ -65,6 +64,42 @@ expect { timeout { fail "$test (timeout)" } eof { } } + +# Now do a debuginfo style probe of the above test + +set fp [open "[pwd]/static_uprobes.sh" "w"] +puts $fp " +ed $sup_srcpath <