[lldb-server] jThreadsInfo returns stack memory
authorJaroslav Sevcik <jarin@google.com>
Mon, 6 Apr 2020 13:41:33 +0000 (15:41 +0200)
committerPavel Labath <pavel@labath.sk>
Mon, 6 Apr 2020 13:43:19 +0000 (15:43 +0200)
commita53bf9b7c8f1ca950226a55c0e99fd706a7b6ad2
tree1c5cabaff2f83e72e5a1c769138fe0ab920c27a5
parent44773439939f77bcea4f9b13b5ea137f57d9a30b
[lldb-server] jThreadsInfo returns stack memory

This patch adds parts of the stack that should be useful for unwinding
to the jThreadsInfo reply from lldb-server. We return the top of the
stack (12 words), and we also try to walk the frame pointer linked list
and return the memory containing frame pointer and return address pairs.
The idea is to cover the cases with and without frame pointer omission.

Differential Revision: https://reviews.llvm.org/D74398
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
lldb/test/API/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py
lldb/test/API/tools/lldb-server/threads-info/Makefile [new file with mode: 0644]
lldb/test/API/tools/lldb-server/threads-info/TestGdbRemoteThreadsInfoMemory.py [new file with mode: 0644]
lldb/test/API/tools/lldb-server/threads-info/main.cpp [new file with mode: 0644]