[all-commits] [llvm/llvm-project] 20ce8a: [lldb/API] NFC: Reformat and simplify SBThread::Ge...

fredriss via All-commits all-commits at lists.llvm.org
Mon Mar 2 17:44:00 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 20ce8affce85ddea069e979a6e79a2c62ca7a0bc
      https://github.com/llvm/llvm-project/commit/20ce8affce85ddea069e979a6e79a2c62ca7a0bc
  Author: Fred Riss <friss at apple.com>
  Date:   2020-03-02 (Mon, 02 Mar 2020)

  Changed paths:
    M lldb/source/API/SBThread.cpp
    M lldb/source/Target/Thread.cpp

  Log Message:
  -----------
  [lldb/API] NFC: Reformat and simplify SBThread::GetStopDescription()

Summary:
This gets rid of some nesting and of the raw char* variable that caused
the memory management bug we hit recently.

This commit also removes the fallback code which should trigger when
the StopInfo provides no stop description. All currently implemented
StopInfos have a `GetDescription()` method that shouldn't return an
empty description.

Reviewers: JDevlieghere, labath, mib

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D74157




More information about the All-commits mailing list