]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: Fix cfi_debug => cfi_debug_bias typo in varlocs assert.
authorMark Wielaard <mark@klomp.org>
Thu, 16 Nov 2017 12:20:11 +0000 (13:20 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 16 Nov 2017 12:55:33 +0000 (13:55 +0100)
We want to check whether the bias is zero, not whether we have dwarf
debug_frame cfi.

This triggered on a ppc64/ppc64le self-check since it has both
debug_frame and eh_frame cfi (other arches often only have eh_frame).

Signed-off-by: Mark Wielaard <mark@klomp.org>
tests/ChangeLog
tests/varlocs.c

index 6c8a8e1842e9378e5b83c64173b6289f241b1bda..01620343f6d125b717c88dfae884aa0fed2780b5 100644 (file)
@@ -1,3 +1,7 @@
+2017-11-16  Mark Wielaard  <mark@klomp.org>
+
+       * varlocs.c (main): Fix cfi_debug => cfi_debug_bias typo in assert.
+
 2017-11-10  Mark Wielaard  <mark@klomp.org>
 
        * run-exprlocs-self.sh: New test.
index 3267198f7679f732e4b85cc6e714bf550bdba64c..0e4322962fafaf40f39289db7bc85c44f41e6183 100644 (file)
@@ -1031,7 +1031,7 @@ main (int argc, char *argv[])
          cfi_debug = dwfl_module_dwarf_cfi (mod, &cfi_debug_bias);
          cfi_eh = dwfl_module_eh_cfi (mod, &cfi_eh_bias);
 
-         assert (cfi_debug == 0); // No bias needed, same file.
+         assert (cfi_debug_bias == 0); // No bias needed, same file.
 
          // We are a bit forgiving for object files.  There might be
          // relocations we don't handle that are needed in some