[Lldb-commits] [PATCH] D122943: [LLDB][NativePDB] Fix a crash when S_DEFRANGE_SUBFIELD_REGISTER descirbes a simple type

Zequan Wu via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 1 15:45:55 PDT 2022


zequanwu created this revision.
zequanwu added reviewers: rnk, labath.
Herald added a project: All.
zequanwu requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

When a variable is simple type and has 64 bits, the debug info may look like the following when targeting 32bit windows. The variable's content is split into two 32bits registers.

  480 | S_LOCAL [size = 12] `x`
        type=0x0013 (__int64), flags = param
  492 | S_DEFRANGE_SUBFIELD_REGISTER [size = 20]
        register = EAX, may have no name = true, offset in parent = 0
        range = [0001:0073,+7), gaps = []
  512 | S_DEFRANGE_SUBFIELD_REGISTER [size = 20]
        register = ECX, may have no name = true, offset in parent = 4
        range = [0001:0073,+7), gaps = []


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122943

Files:
  lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.cpp
  lldb/test/Shell/SymbolFile/NativePDB/Inputs/subfield_register_simple_type.lldbinit
  lldb/test/Shell/SymbolFile/NativePDB/subfield_register_simple_type.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122943.419879.patch
Type: text/x-patch
Size: 23233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220401/40aa15c7/attachment-0001.bin>


More information about the lldb-commits mailing list