[all-commits] [llvm/llvm-project] 95e294: [LLDB] Fix possible nullptr exception

Emmmer via All-commits all-commits at lists.llvm.org
Tue Aug 16 08:41:18 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95e2949a5352aea0182ba5295bf9ba46080c261e
      https://github.com/llvm/llvm-project/commit/95e2949a5352aea0182ba5295bf9ba46080c261e
  Author: Emmmer <yjhdandan at 163.com>
  Date:   2022-08-16 (Tue, 16 Aug 2022)

  Changed paths:
    M lldb/source/Plugins/Process/Utility/NativeProcessSoftwareSingleStep.cpp

  Log Message:
  -----------
  [LLDB] Fix possible nullptr exception

Some architectures do not have a flag register (like riscv).
In this case, we should set it to `baton.m_register_values.end()` to avoid nullptr exception.

Reviewed By: DavidSpickett

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




More information about the All-commits mailing list