[all-commits] [llvm/llvm-project] 55b706: Tolerate missing debug info in the shared_ptr pret...

Sterling-Augustine via All-commits all-commits at lists.llvm.org
Tue Apr 20 09:53:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55b7061116b5f0f839bd4240c3c6fba63918b816
      https://github.com/llvm/llvm-project/commit/55b7061116b5f0f839bd4240c3c6fba63918b816
  Author: Sterling Augustine <saugustine at google.com>
  Date:   2021-04-20 (Tue, 20 Apr 2021)

  Changed paths:
    M libcxx/test/libcxx/gdb/gdb_pretty_printer_test.py
    M libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp
    M libcxx/utils/gdb/libcxx/printers.py

  Log Message:
  -----------
  Tolerate missing debug info in the shared_ptr pretty printer.

Certain fields of shared ptr have virtual functions and therefore
have their debug info homed in libc++. But if libc++ wasn't built
with debug info, the pretty printer would fail.

This patch makes the pretty printer tolerate such conditions and
updates the test harness.

This patch significantly reworks a previous attempt.

This addresses https://bugs.llvm.org/show_bug.cgi?id=48937

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




More information about the All-commits mailing list