summaryrefslogtreecommitdiffstats
path: root/testsuite/dwz.tests/gdb-add-index.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/dwz.tests/gdb-add-index.sh')
-rw-r--r--testsuite/dwz.tests/gdb-add-index.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/dwz.tests/gdb-add-index.sh b/testsuite/dwz.tests/gdb-add-index.sh
new file mode 100644
index 0000000..3095efb
--- /dev/null
+++ b/testsuite/dwz.tests/gdb-add-index.sh
@@ -0,0 +1,15 @@
+cp $execs/hello 1
+
+# Redirect gdb-add-index stderr to stdout.
+# https://sourceware.org/bugzilla/show_bug.cgi?id=29316
+gdb-add-index 1 2>&1
+
+readelf -S 1 | grep -q '\.gdb_index'
+
+dwz 1 -o 2
+
+readelf -S 2 | grep -q '\.gdb_index'
+
+smaller-than.sh 2 1
+
+rm -f 1 2