[all-commits] [llvm/llvm-project] 1d6fa4: [lldb] Have Disassembler::ParseInstructions take a...

Pavel Labath via All-commits all-commits at lists.llvm.org
Tue Mar 3 05:02:21 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d6fa41f40da5f5a615497eac818623779c46556
      https://github.com/llvm/llvm-project/commit/1d6fa41f40da5f5a615497eac818623779c46556
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2020-03-03 (Tue, 03 Mar 2020)

  Changed paths:
    M lldb/include/lldb/Core/Disassembler.h
    M lldb/source/Core/Disassembler.cpp
    M lldb/source/Plugins/Architecture/Mips/ArchitectureMips.cpp
    M lldb/source/Plugins/Architecture/Mips/ArchitectureMips.h

  Log Message:
  -----------
  [lldb] Have Disassembler::ParseInstructions take a Target&

Instead of a ExecutionContext*. All it needs is the target so it can
read the memory.

This removes some defensive checks from the function. I've added
equivalent checks to the callers in cases where a non-null target
pointer was not guaranteed to be available.




More information about the All-commits mailing list