]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
testsuite, gdb.btrace: fix 32-bit PIE false positives
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 4 Dec 2020 09:29:06 +0000 (10:29 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Mon, 21 Dec 2020 08:00:28 +0000 (09:00 +0100)
commit0fe69a94d4c4793d7247442e0611e5d3b8f542f5
treeb449a9c7c20dddeb8ea461bd66b6c1155bcdc9fb
parent806e7575e232f854ce7fc88c2a55c63265d57e5e
testsuite, gdb.btrace: fix 32-bit PIE false positives

For 32-bit position independent executables, GCC generates an extra call to

    __x86.get_pc_thunk.<reg>

which appears in the function call history.  It is correct to appear there
but this confuses the tests, which check for an expected sequence of
functions.

Build with nopie to avoid this complication.

gdb/testsuite/ChangeLog:
2020-12-04  Markus Metzger  <markus.t.metzger@intel.com>

* gdb.btrace/exception.exp: Build with nopie.
* gdb.btrace/function_call_history.exp: Likewise.
* gdb.btrace/unknown_functions.exp: Likewise.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.btrace/exception.exp
gdb/testsuite/gdb.btrace/function_call_history.exp
gdb/testsuite/gdb.btrace/unknown_functions.exp