[all-commits] [llvm/llvm-project] 2fa273: [LLDB][NativePDB] Fix the case when S_DEFRANGE_SUB...

Zequan Wu via All-commits all-commits at lists.llvm.org
Wed Apr 20 10:33:16 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fa2734690ff6debf2d678dc9f94fa14e0cbd227
      https://github.com/llvm/llvm-project/commit/2fa2734690ff6debf2d678dc9f94fa14e0cbd227
  Author: Zequan Wu <zequanwu at google.com>
  Date:   2022-04-20 (Wed, 20 Apr 2022)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.cpp
    M lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.h
    M lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.cpp
    M lldb/test/Shell/SymbolFile/NativePDB/local-variables-registers.s

  Log Message:
  -----------
  [LLDB][NativePDB] Fix the case when S_DEFRANGE_SUBFIELD_REGISTERs are out of order.

Previously, I was assuming that S_DEFRANGE_SUBFIELD_REGISTERs are always in the
increasing order of offset_in_parent until I saw a counter example.

Using `std::map` so that they are sorted by offset_in_parent.

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




More information about the All-commits mailing list