]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog-2014-2021
gdb.trace/tfind.exp: Force call via global entry point on ppc64le.
authorMarcin Kościelnicki <koriakin@0x04.net>
Fri, 19 Feb 2016 04:04:13 +0000 (05:04 +0100)
committerMarcin Kościelnicki <koriakin@0x04.net>
Wed, 9 Mar 2016 17:46:12 +0000 (18:46 +0100)
commitf77198c878424891f11d6550370f8d9382f412de
treec8569f2e6ba18c1b932725b764091fc33df2a396
parentba84e0da35d29dd8969a4bcdd84e3eaa48927a84
gdb.trace/tfind.exp: Force call via global entry point on ppc64le.

tfind.exp sets a breakpoint on *gdb_recursion_test, which is the global
entry point on ppc64le, and won't be hit, since the call uses
the local entry.  Fix by calling the function via a pointer in a global
variable, forcing use of the global entry.

This patch is a slightly modified hunk extracted from
https://sourceware.org/ml/gdb-patches/2015-07/msg00353.html

gdb/testsuite/ChangeLog:

2016-03-09  Wei-cheng Wang  <cole945@gmail.com>
    Marcin Kościelnicki  <koriakin@0x04.net>

* gdb.trace/actions.c (gdb_recursion_test_fp): New typedef.
(gdb_recursion_test_ptr): New global variable.
(gdb_recursion_test): Call gdb_recursion_test_ptr instead of
gdb_recursion_test.
(gdb_c_test): Ditto.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/actions.c