[all-commits] [llvm/llvm-project] aedad6: [LLDB][NativePDB] Add local variables with no loca...

Zequan Wu via All-commits all-commits at lists.llvm.org
Mon Sep 12 12:01:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aedad60231fcfd967f041616573caa7ff229e2b2
      https://github.com/llvm/llvm-project/commit/aedad60231fcfd967f041616573caa7ff229e2b2
  Author: Zequan Wu <zequanwu at google.com>
  Date:   2022-09-12 (Mon, 12 Sep 2022)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.cpp
    M lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.h
    M lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
    M lldb/test/Shell/SymbolFile/NativePDB/inline_sites.test

  Log Message:
  -----------
  [LLDB][NativePDB] Add local variables with no location info.

If we don't add local variables with no location info, when trying to print it,
lldb won't find it in the its parent DeclContext, which makes lldb to spend more
time to search all the way up in DeclContext hierarchy until found same name
variable or failed. Dwarf plugin also add local vars even if they don't have
location info.

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




More information about the All-commits mailing list