diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-06-25 16:35:53 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-06-25 16:35:53 +0200 |
commit | 034a0c2940eb2c7a51c40e404f5aefed2108777e (patch) | |
tree | 479798a806fc85ce8d0d0289a7f1a5f61fb56a88 | |
parent | 9cb00f47af5b4feb20df8d747ba9ecc683c26aa6 (diff) | |
download | systemtap-steved-034a0c2940eb2c7a51c40e404f5aefed2108777e.tar.gz systemtap-steved-034a0c2940eb2c7a51c40e404f5aefed2108777e.tar.xz systemtap-steved-034a0c2940eb2c7a51c40e404f5aefed2108777e.zip |
Add seperate debuginfo after prelinking to exelib.exp tests.
We split debuginfo before prelinking, that means that the base load address
of the .so is non-zero, while for the .debug files they are zero. In the
other case we supported sep-debug without prelinking both .so and .debug
load bases were zero. In this new test case both base load addresses are
non-zero.
* testsuite/systemtap.exelib/exelib.exp: Add libdebug == "sep-after" to
indicate separate debuginfo after prelinking library. Skip sep-after
if not prelinking.
-rw-r--r-- | testsuite/systemtap.exelib/exelib.exp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/testsuite/systemtap.exelib/exelib.exp b/testsuite/systemtap.exelib/exelib.exp index 51025d56..29bff480 100644 --- a/testsuite/systemtap.exelib/exelib.exp +++ b/testsuite/systemtap.exelib/exelib.exp @@ -48,16 +48,25 @@ foreach arch $arches { foreach libprelink {no yes} { # BUG! "yes" breaks ustack PR10323 # not done yet, "no" lib debug. - foreach libdebug {yes sep} { + # seperate debuginfo can be done before or after prelinking + # (after is only done if prelinking is also done + foreach libdebug {yes sep sep-after} { set libname "uprobeslib${compiler}${opt}${arch}" if {$libprelink == "yes"} { set libname $libname-prelink } + + # This combination doesn't make sense + if {$libdebug == "sep-after" && $libprelink == "no"} { + continue; + } if {$libdebug == "sep"} { set libname $libname-sep-debug + } elseif {$libdebug == "sep-after"} { + set libname $libname-sep-debug-after } else { set libname $libname-debug } @@ -89,7 +98,7 @@ foreach arch $arches { pass "$libname compile $testsrclib" } - + # seperate debuginfo before prelinking if {$libdebug == "sep"} { seperate_debuginfo $testso } @@ -103,6 +112,11 @@ foreach arch $arches { verbose -log "result is $result" } + # seperate debuginfo after prelinking + if {$libdebug == "sep-after"} { + seperate_debuginfo $testso + } + # should we also prelink exes? foreach exepie {no yes} { # not supported, "no" exe debug. |