[all-commits] [llvm/llvm-project] a53bf9: [lldb-server] jThreadsInfo returns stack memory

Pavel Labath via All-commits all-commits at lists.llvm.org
Mon Apr 6 06:43:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a53bf9b7c8f1ca950226a55c0e99fd706a7b6ad2
      https://github.com/llvm/llvm-project/commit/a53bf9b7c8f1ca950226a55c0e99fd706a7b6ad2
  Author: Jaroslav Sevcik <jarin at google.com>
  Date:   2020-04-06 (Mon, 06 Apr 2020)

  Changed paths:
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
    M lldb/test/API/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py
    A lldb/test/API/tools/lldb-server/threads-info/Makefile
    A lldb/test/API/tools/lldb-server/threads-info/TestGdbRemoteThreadsInfoMemory.py
    A lldb/test/API/tools/lldb-server/threads-info/main.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list