[all-commits] [llvm/llvm-project] 9f6082: llvm-symbolizer: Support loclist in FRAME.

Evgenii Stepanov via All-commits all-commits at lists.llvm.org
Mon Nov 25 15:12:38 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f60820d8416a3e6839624839301a491ddb5d2a0
      https://github.com/llvm/llvm-project/commit/9f60820d8416a3e6839624839301a491ddb5d2a0
  Author: Evgenii Stepanov <eugenis at google.com>
  Date:   2019-11-25 (Mon, 25 Nov 2019)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
    A llvm/test/tools/llvm-symbolizer/frame-loclist.s

  Log Message:
  -----------
  llvm-symbolizer: Support loclist in FRAME.

Summary:
Support location lists in FRAME command.
These are used for the majority of local variables in optimized code.
Also support DW_OP_breg in addition to DW_OP_fbreg when it refers to the
same register as DW_AT_frame_base.

Reviewers: pcc, jdoerfert

Subscribers: srhines, hiraditya, rupprecht, llvm-commits

Tags: #llvm

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


  Commit: 1b42cc0df160b2c741a258331e647472c370eb66
      https://github.com/llvm/llvm-project/commit/1b42cc0df160b2c741a258331e647472c370eb66
  Author: Evgenii Stepanov <eugenis at google.com>
  Date:   2019-11-25 (Mon, 25 Nov 2019)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
    A llvm/test/tools/llvm-symbolizer/frame-specification.s

  Log Message:
  -----------
  llvm-symbolizer: fix handling of DW_AT_specification in FRAME.

Summary:
Use getSubroutineName() to the the subrouting name; this function knows
how to handle cases when DW_TAG_subprogram refers to an earlier
declaration:

0x00000050:     DW_TAG_subprogram
                  DW_AT_linkage_name    ("_ZN1A1fEv")
                  DW_AT_name    ("f")
...
0x00000067:   DW_TAG_subprogram
                DW_AT_low_pc    (0x0000000000000000)
                DW_AT_high_pc   (0x0000000000000020)
                DW_AT_specification     (0x00000050 "_ZN1A1fEv")
...
0x0000008c:     DW_TAG_variable

Reviewers: pcc, vitalybuka, jdoerfert

Subscribers: srhines, hiraditya, rupprecht, llvm-commits

Tags: #llvm

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


Compare: https://github.com/llvm/llvm-project/compare/1c33d7130ef3...1b42cc0df160


More information about the All-commits mailing list