summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/systemtap.exelib/exelib.exp18
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.