[LLDB][PPC64] Fix single step and LldbGdbServer tests
authorPavel Labath <labath@google.com>
Thu, 8 Mar 2018 15:41:13 +0000 (15:41 +0000)
committerPavel Labath <labath@google.com>
Thu, 8 Mar 2018 15:41:13 +0000 (15:41 +0000)
commitb9923f049e3641ab57cd29ce90a31916740c1534
treede1f8018fd0bd0ccdd7d34c5b5b1d3f00b2fb5eb
parenta87b74f72b5985d2d6fdc4fb22b69b6a88f2de02
[LLDB][PPC64] Fix single step and LldbGdbServer tests

Summary:
On PPC64, the tested functions were being entered through their local entry point, while the tests expected the program to stop at the function start address, that, for PPC64, corresponds to the global entry point.

To fix the issue, the test program was modified to call the functions to be tested through function pointers, which, on PPC64, force the calls through the global entry point, while not affecting the test on other platforms.

Reviewers: clayborg, labath

Reviewed By: labath

Subscribers: alexandreyy, lbianc

Differential Revision: https://reviews.llvm.org/D43768
Patch by Leandro Lupori <leandro.lupori@gmail.com>.

llvm-svn: 327013
lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestLldbGdbServer.py
lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
lldb/packages/Python/lldbsuite/test/tools/lldb-server/main.cpp